Giter VIP home page Giter VIP logo

Comments (4)

wpbonelli avatar wpbonelli commented on August 19, 2024 6

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.

redian avatar redian commented on August 19, 2024 1

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.

smorimoto avatar smorimoto commented on August 19, 2024 1

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.

t-dedah avatar t-dedah commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.