Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prantlf/delete-cache-action
GitHub action for deleting the cache with the specified key.
https://github.com/prantlf/delete-cache-action
actions cache clear delete github github-actions
Last synced: 4 days ago
JSON representation
GitHub action for deleting the cache with the specified key.
- Host: GitHub
- URL: https://github.com/prantlf/delete-cache-action
- Owner: prantlf
- License: mit
- Created: 2023-10-18T21:42:37.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-07T13:51:40.000Z (6 months ago)
- Last Synced: 2024-08-10T06:58:10.882Z (3 months ago)
- Topics: actions, cache, clear, delete, github, github-actions
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/delete-cache
- Size: 674 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Delete Cache
[![Latest version](https://img.shields.io/npm/v/delete-cache-action) ![Dependency status](https://img.shields.io/librariesio/release/npm/delete-cache-action)](https://www.npmjs.com/package/delete-cache-action)
GitHub action for deleting cache with a specified key.
## Usage
Delete the cache with a specific key:
```yml
- uses: prantlf/delete-cache-action@v2
with:
key: newchanges-linux-x64.zip-${{ github.sha }}
```## Inputs
The following parameters can be specified using the `with` object:
### key
Type: `String`
The cache key to delete. Mandatory.
### token
Type: `String`
Default: `${{ github.token }}`Authorization token to access the cache in the target repository. Either a GitHub personal access token or the GitHub workflow token. If not provided, the environment variable `GITHUB_TOKEN` will be used as a fallback. And if even that is not set, the GitHub workflow token from the action-execution context will be used as default.
## License
Copyright (C) 2023-2024 Ferdinand Prantl
Licensed under the [MIT License].
[MIT License]: http://en.wikipedia.org/wiki/MIT_License