File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 18
18
schedule :
19
19
- cron : ' 0 7 * * 1' # 8AM CET/11PM PT on Mondays
20
20
21
+ # Allow github actions to commit to the branch
22
+ permissions :
23
+ contents : write
21
24
22
25
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23
26
jobs :
@@ -34,17 +37,18 @@ jobs:
34
37
# Steps represent a sequence of tasks that will be executed as part of the job
35
38
steps :
36
39
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
37
- - uses : actions/checkout@v3
40
+ - uses : actions/checkout@v4
38
41
with :
39
42
fetch-depth : 0
40
43
41
- - uses : haskell/ actions/setup@v2
44
+ - uses : haskell- actions/setup@v2
42
45
name : Setup Haskell Stack
43
46
with :
44
47
ghc-version : ${{ matrix.ghc }}
45
48
stack-version : ${{ matrix.stack }}
46
49
47
- - uses : actions/cache/restore@v3
50
+ - uses : actions/cache/restore@v4
51
+ id : cache
48
52
name : Cache ~/.stack
49
53
with :
50
54
path : ~/.stack
54
58
- name : Build dependencies
55
59
run : stack build --system-ghc --only-dependencies
56
60
57
- - uses : actions/cache/save@v3
61
+ - uses : actions/cache/save@v4
62
+ # We shouldn't ever run into an exact key hit (in theory),
63
+ # but this prevents errors if we do.
64
+ if : steps.cache.outputs.cache-hit != 'true'
58
65
with :
59
66
path : ~/.stack
60
67
key : ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
You can’t perform that action at this time.
0 commit comments