Skip to content

Commit

Permalink
fix: replace actions/cache with actions/cache/restore (#97)
Browse files Browse the repository at this point in the history
Calling `actions/cache` in combination with `actions/cache/save` caused
redundant cache saves resulting in post-run error messages.
`actions/cache/restore` doesn't result in a post-run cache save.

Closes #96
  • Loading branch information
austinletson authored Sep 1, 2024
1 parent bd0ee73 commit 8c5574b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Fixed

- replace `actions/cache` with `actions/cache/restore` to prevent redundant cache saving
previously caused by the combination of `actions/cache` and `actions/cache/save`

## v1.0.2 - 2024-8-26

### Changed
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ runs:
shell: bash
working-directory: ${{ inputs.lake-package-directory }}

- uses: actions/cache@v4
- uses: actions/cache/restore@v4
if: ${{ inputs.use-github-cache == 'true' }}
with:
path: ${{ inputs.lake-package-directory }}/.lake
Expand Down

0 comments on commit 8c5574b

Please sign in to comment.