setup-python icon indicating copy to clipboard operation
setup-python copied to clipboard

Add a new input to skip cache updates

Open ozancaglayan opened this issue 2 years ago • 2 comments

Description:

When this action is used with caching enabled, PRs and non-main branches creates new cache artifacts which may be overwhelming. This can be mitigated if something like skip-cache-update: bool option is added and users define it as false if the action runs in a branch that is not main. This would skip the post stage of the action to effectively cancel the cache pushing.

ozancaglayan avatar Oct 23 '23 13:10 ozancaglayan

Hello @ozancaglayan. Thank you for your feature request. We'll take a look on it.

dmitry-shibanov avatar Oct 24 '23 08:10 dmitry-shibanov

Ah, turns out I had the same idea! #762

akx avatar Nov 10 '23 08:11 akx