Skip to content

Commit

Permalink
Only save cabal-store caches if the primary key wasn't an exact hit
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdral committed Aug 15, 2023
1 parent 957466a commit 3757385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
- name: "Save cache for cabal-store"
uses: actions/cache/save@v3
id: save-cabal-store
if: steps.build-dependencies.outcome == 'success'
if: steps.build-dependencies.outcome == 'success' && steps.restore-cabal-store.outputs.cache-hit != 'true'
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ steps.restore-cabal-store.outputs.cache-primary-key }}
Expand Down

0 comments on commit 3757385

Please sign in to comment.