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
save-always
input added in v4 is not working as intended due topost-if
expressions not supporting the input context.To avoid breaking users who have already added this input to their workflows, it is being deprecated now and will be removed in the next major version (v5).
This also fixes our documentation for how to properly use the recommended alternative of a separate
actions/cache/save
step, which requires checking thecache-hit
output to avoid attempting to save a cache that already exists.Motivation and Context
if: always()
withcache/save
may lead to errors (fix README!) #1154How Has This Been Tested?
Validated that the input had a deprecation message: https://github.com/joshmgross/actions-testing/actions/runs/10395133356
Screenshots (if appropriate):
Types of changes
Since
save-always
is already broken, I do not consider this a breaking change.Checklist: