File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v3
13
+ - uses : technote-space/get-diff-action@v4.0.1
14
+ with :
15
+ PATTERNS : |
16
+ +src/**/*.hs
13
17
14
18
- uses : ./.github/actions/setup-build
15
19
with :
@@ -20,10 +24,12 @@ jobs:
20
24
run : |
21
25
cabal install stylish-haskell
22
26
echo "${HOME}/.cabal/bin" >> $GITHUB_PATH
27
+ if : env.GIT_DIFF
23
28
24
29
- name : " Check stylish-haskell is available"
25
30
run : |
26
31
echo $(which stylish-haskell)
32
+ if : env.GIT_DIFF
27
33
28
34
- name : Compiled deps cache
29
35
id : stylish-haskell-compiled-cache
37
43
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-${{ env.INDEX_STATE }}-
38
44
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-
39
45
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-
46
+ if : env.GIT_DIFF
40
47
41
48
- uses : actions/setup-python@v4
49
+ if : env.GIT_DIFF
42
50
- uses : pre-commit/action@v3.0.0
51
+ with :
52
+ extra_args : --files env.GIT_DIFF
53
+ if : env.GIT_DIFF
You can’t perform that action at this time.
0 commit comments