Skip to content

Commit a94ab43

Browse files
committedSep 12, 2024
update action versions
1 parent ea7581a commit a94ab43

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed
 

Diff for: ‎.github/workflows/main.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,18 @@ jobs:
3737
# Steps represent a sequence of tasks that will be executed as part of the job
3838
steps:
3939
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343

44-
- uses: haskell/actions/setup@v2
44+
- uses: haskell-actions/setup@v2
4545
name: Setup Haskell Stack
4646
with:
4747
ghc-version: ${{ matrix.ghc }}
4848
stack-version: ${{ matrix.stack }}
4949

50-
- uses: actions/cache/restore@v3
50+
- uses: actions/cache/restore@v4
51+
id: cache
5152
name: Cache ~/.stack
5253
with:
5354
path: ~/.stack
@@ -57,7 +58,10 @@ jobs:
5758
- name: Build dependencies
5859
run: stack build --system-ghc --only-dependencies
5960

60-
- 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'
6165
with:
6266
path: ~/.stack
6367
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}

0 commit comments

Comments
 (0)