Description:
In their docs, actions/cache documents a workflow where you use the GitHub CLI to manually delete caches so that your caches on main don't end up being removed.
If cache-primary-key and cache-matched-key outputs were added to match actions/cache/restore (see its action.yml), users could add an optional step to delete the previous cache.
Description: In their docs,
actions/cache
documents a workflow where you use the GitHub CLI to manually delete caches so that your caches on main don't end up being removed.If
cache-primary-key
andcache-matched-key
outputs were added to matchactions/cache/restore
(see its action.yml), users could add an optional step to delete the previous cache.https://github.com/actions/cache/blob/main/tips-and-workarounds.md
Justification: Like https://github.com/actions/setup-node/issues/1151 this would give users more flexibility around caching without having to opt out the caching from
actions/setup-node
.Are you willing to submit a PR? If I can find the time
Resources
cache-hit
output ofactions/cache
and what would be best in the next major version. https://github.com/actions/cache/issues/1466