Delete GitHub Actions caches for a given key.
uses: koki-develop/cache-delete-action@v1
with:
key: '<cache-key>'
Name | Default | Required | Description |
---|---|---|---|
key |
Yes | A key for identifying the cache. | |
ref |
No | By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref. | |
token |
${{ github.token }} |
No | The token to use to delete the cache. |
fail-on-not-found |
false |
No | Whether to fail the action if the cache is not found. |