Set the Actions cache retention limit
One step with GitHub Actions. We can help you get access.
Get something done
Set the Actions cache retention limit
with GitHub Actions
Works with AI assistants
Use GitHub Actions: its Github Actions API lets you set the Actions cache retention limit in a single step (PUT /repos/{owner}/{repo}/actions/cache/retention-limit). GitHub Actions also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I keep Actions caches longer than the default?
- Can I cap how long caches are retained in a repository?
Say it to your AI assistant
- Set the Actions cache retention limit for {owner}/{repo} to {max_cache_retention_days} days.
- Keep caches in {owner}/{repo} for at most {max_cache_retention_days} days.
For your developer
PUT /repos/{owner}/{repo}/actions/cache/retention-limit in Github Actions API. Full spec on APIs.io.