Comments (4)
for anyone else looking for a convenient bash one liner to delete all caches in the meantime:
gh actions-cache list | tail -n +5 | cut -f1 | xargs -I@ gh actions-cache delete @ --confirm
from gh-actions-cache.
In case you want to delete the largest ones first:
gh actions-cache list --sort size --order desc | tail -n +5 | cut -f1 | xargs -I@ gh actions-cache delete @ --confirm
from gh-actions-cache.
This one-liner does it in a simpler way, but also runs it in parallel as many as the number of cores of your machine.
gh actions-cache list --limit 100 | awk '{print $1}' | xargs -P $(getconf _NPROCESSORS_ONLN) -I HASH gh actions-cache delete HASH --confirm
from gh-actions-cache.
Hi @electrum thank you for your wonderful suggestion! :)
Currently, we are planning for some enhancements on the current CLI on making it better and I've added your suggestion in list. We will prioritise based on the urgent needs and feedback from other users.
In the meantime, in case you wish to contribute, please feel free to raise a Pull Request for your suggested feature and we will be happy to review the same.
Thanks! :)
from gh-actions-cache.
Related Issues (20)
- Clarify how remote is selected HOT 2
- restore-keys: | npm-feature-${{ hashFiles('package-lock.json') }} npm-feature- npm- HOT 2
- violethaze74-gh-cli
- Ability to list cache content HOT 3
- v1.0.2 requires a version of glibc that is not available on the current 'ubuntu-latest' Github runner HOT 10
- Unable to use branch filter to filter "master" branch caches HOT 7
- Return the empty caches message as error log, not standard log
- This is a great tool, but I'd also like to see a way to do the same with repo artifacts HOT 4
- Add date filter
- List caches not in specified branch list HOT 1
- Tests don't pass when executed from tarball HOT 1
- Support for GitHub Enterprise Server HOT 1
- version `GLIBC_2.32' not found on Debian bullseye HOT 7
- "Add support for secure token storage" HOT 4
- filter output column to print only cache entry key
- Feature: delete --ignore-not-found
- Feature request: Pagination support
- Error: authentication token not found for host github.com HOT 6
- Title HOT 3
- Document that `actions: read/write` permissions are required to use gh-actions-cache in gh actions CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gh-actions-cache.