Skip to content

Commit

Permalink
CI: Document why always() is needed in actions/cache/save
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Aug 5, 2024
1 parent d8b47f2 commit e4ebe05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ jobs:
- uses: actions/cache/save@v4
name: Save cabal store cache
# Always save the cache, even if a previous step fails. (By default, the
# `cache` action will skip saving the cache, which would require every
# subsequent CI job to rebuild the dependencies until there is a
# successful job.)
if: always()
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
Expand Down

0 comments on commit e4ebe05

Please sign in to comment.