Add environment variable to prevent saving cache.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the enhancement
On bigger repos, the maximum cache size of 10 GB is easily exceeded with PRs.
It would be nice if there was a global environment variable one could use to prevent saving cache in PRs.
I'm creating this issue here because if this was implemented at the library level, any action that uses this would automatically benefit from it without having to implement it themselves. I'm going around figuring out which actions are creating caches right now and creating issues for all of them.
Additional information
https://github.com/Swatinem/rust-cache/issues/95
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked rust-cache issue and locating the cache-saving implementation in actions/toolkit. Confirm how a global environment variable should affect pull requests; done means enabled users can prevent cache saves in PRs while existing behavior remains unchanged otherwise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- ci-cd, devops, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100