-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to restore cache only (for PRs) #641
Comments
Is the option
|
@bombsimon I want to still restore the cache, but not save it |
This option would be great in order to reduce total cache size (on GH it's limited to 10GB). Golang cache can take between 300-500 MB easily and because of that repo can quickly hit cache storage limit. One of possible solution to this problem is to save cache only on the main branch and use read-only mode for non main branches. |
Your feature request related to a problem? Please describe.
GitHub has a 10 GB limit for actions caches, this action alone is using 130 MB for us, it would be nice to not also get another 130 MB for each opened PR.
Describe the solution you'd like.
Add a
save-cache
option to be able to still restore cache (e.g. frommain
), but not save a new cache entryAdditional context.
actions/toolkit#1308
Swatinem/rust-cache#95 (has a
save-if
option https://github.com/Swatinem/rust-cache#example-usage)The text was updated successfully, but these errors were encountered: