This action allows the cache of GitHub Actions to be automatically purged
See action.yml
steps:
- uses: MoeKernel/purge-cache@v3
with:
cache_key: 'CacheKey'
steps:
- uses: MoeKernel/purge-cache@v2
with:
accessed: true
created: false
max-age: 604800
debug
: true # Set to true to output debug infotoken
: $GITHUBTOKEN # Set a GitHub tokenaccessed
: true # Purge caches by their last accessed time (default)created
: false # Purge caches by their created time (default)max-age
: 604800 # Leave only caches accessed in the last 7 days (default)cache_key
: 'YourCacheKeyName' # define the keyname created in your cache/github-actions
See ci.yaml
Output debug data (defaults to false
)
- Number of caches
- Skipped caches
- Deleted caches
steps:
- uses: Moekernel/purge-cache@v2
with:
debug: true
Set a GitHub token, will default to ${github.token}
. This will probably not be nessesary as the default token should be sufficient.
In case custom permissions
are set for the tokens used in your actions workflow, to purge existing caches, the permission:
actions: write
needs to be available for the token.
steps:
- uses: MoeKernel/purge-cache@v2
with:
token: $GITHUBTOKEN
Purge cache for Moe is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.