baiyao105/Action-Cache Cleaner
Cache cleaner for GitHub Actions
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Oct 18, 2025
- License
- MIT
Pinned Snippet
uses: baiyao105/gh-cache-cleaner@1813cc41439b0619c1a8600db5a51c4c98d13be1 # v1.0.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| token | GitHub token | yes | ${{ github.token }} |
| delete_all | Delete all caches in the repository (overrides other options) | no | false |
| branches | Branch names to delete caches from (supports multiple, separated by comma or newline) | no | "" |
| max_delete_count | Maximum number of caches to delete (default -1 deletes all) | no | -1 |
| exclude_branches | Branches to exclude (used with delete_all) | no | [] |
| cache_key_pattern | Cache key matching pattern (supports wildcard *) | no | * |
Outputs
| name | description |
|---|---|
| deleted_count | Number of caches actually deleted |
| total_size_saved | Total cache size freed (in bytes) |
| deleted_cache_ids | List of deleted cache IDs (JSON format) |