You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a cache-save input to support restore-only dependency caching #139
Currently, cache: true enables both cache restoration in the main action and cache saving in the post action.
In many setups, it is desirable to restore caches on every branch and PR, but only write new caches from a default or trusted branch like main or develop.
Right now, to achieve this, you either have to disable caching on PRs altogether (losing restoration entirely) or manually wire up actions/cache/restore and actions/cache/save to mimic setup-vp's internal cache paths and key generation. The latter is brittle because it duplicates internal logic and easily drifts over time.
Proposal
It would be great to add an optional cache-save input (defaulting to true to avoid breaking changes).
Activity
feat: add cache-save input for restore-only caching (#140)