actions / actions/toolkit

Add environment variable to prevent saving cache.

Open
#1,308 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.