ci: use restore
and save
instead of actions/cache
#19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The
actions/cache
action doesn't save the cache if one of the steps following it fails.https://github.com/DmitriyLewen/test-trivy-action/actions/runs/14440129566/job/40488244180#step:7:1
actions/cache
marked inputsave-always
as deprecated - https://github.com/actions/cache/blob/5a3ec84eff668545956fd18022155c47e93e2684/action.yml#L29-L36Recommended to use action
actions/cache/restore
+actions/cache/save
- https://github.com/actions/cache/tree/main/save#always-save-cachetest runs:
Related Issues