actions / actions/cache

`retention-days` key

Open
#1,338 1 comment 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Could a retention-days key be added to this repository similar to what https://github.com/actions/upload-artifact has. This could allow the cache to, essentially, be cleaned up more frequently. This would have two benefits:

  1. Clients would have a less full https://github.com/OWNER/REPOSITOY/actions/caches page in certain situations.
  2. GitHub could reduce their data storage requirements.

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 comparing the requested retention-days behavior in actions/cache with the existing option in actions/upload-artifact. Then locate the cache configuration and cleanup entry points and any related tests; done means the key is accepted and cache entries can be cleaned up more frequently as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.