Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter output column to print only cache entry key #63

Open
lavigne958 opened this issue Apr 14, 2023 · 0 comments
Open

filter output column to print only cache entry key #63

lavigne958 opened this issue Apr 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lavigne958
Copy link

Describe the feature or problem you’d like to solve

Offer an option to only print the cache entry key

Proposed solution

It will benefit the users as one of the common use case is to list the keys, then to delete them.
In order to execute that step we pipe the output of the command to cut -f 1 which will only select the first column.
gh-action-cache can easily do it using some flags like --output keys which only prints the keys of each cache entry instead of the whole line.

this is how it is advertised on github documentation: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries

Additional context

Listing cache entries is very useful, in my case it was for deleting the cache entries, I am sure for most people it is too but possibly the listing is used for other reasons.

If that's open for external contribution I wish to give it a try and propose a pull requests.

@lavigne958 lavigne958 added the enhancement New feature or request label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant