Skip to content

prantlf/delete-cache-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Delete Cache

Latest version Dependency status

GitHub action for deleting cache with a specified key.

Usage

Delete the cache with a specific key:

- 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.