Quantcast
Channel: Clear cache in GitHub Actions - Stack Overflow
Browsing all 12 articles
Browse latest View live

Answer by VonC for Clear cache in GitHub Actions

Since you can use the GitHub CLI gh in GitHub Actions, you now (July 2023) have with gh v2.32.0 the new gh cache delete:# Delete a cache by id$ gh cache delete 1234# Delete a cache by key$ gh cache...

View Article



Answer by windwerfer for Clear cache in GitHub Actions

keep the last cache with this bash function (add it to your .bashrc file)function gh_clear_old_caches(){ GH_REPO='your_github_user/your_repository' echo "deleting all caches, except the last" gh api...

View Article

Answer by Andrii Bodnar for Clear cache in GitHub Actions

One more easy and straightforward way to remove Actions' cache - Purge cache GH Action.This action allows the cache of GitHub Actions to be automatically purged based on the last usage and configured...

View Article

Answer by Christian Melchior for Clear cache in GitHub Actions

For anyone looking for a simple commandline solution, the following shell command will also do it. It requires the Github CLI + JQ:gh api -H 'Accept: application/vnd.github+json'...

View Article

Answer by lukee for Clear cache in GitHub Actions

This can be done from GH Actions as well.name: Clear cacheon: workflow_dispatch:permissions: actions: writejobs: clear-cache: runs-on: ubuntu-latest steps: - name: Clear cache uses:...

View Article


Answer by eirenik0 for Clear cache in GitHub Actions

Based @beatngu13 answer I've created Makefile target that remove all cache from Github Actions:GH_REPO ?= ALLATRA-IT/ephyr # replace with your `org/repo`# Clear Github Acions usage cache.## Need to...

View Article

Answer by TrinitronX for Clear cache in GitHub Actions

Here's another automated solution similar to @beatngu13's cache key invalidation method. This one uses a generated timestamp file that gets committed and then used in a hashFiles(...) prefix to the...

View Article

Answer by beatngu13 for Clear cache in GitHub Actions

Update (July 11, 2023)As already described in VonC's answer, the GitHub CLI now has a dedicated cache top-level command:List of caches for the current repository:$ gh cache listDelete a cache for the...

View Article


Answer by Rushi patel for Clear cache in GitHub Actions

@GegznaV you can use something like tmate, and manually clear cache by sshing into a runner.

View Article


Answer by Edward Romero for Clear cache in GitHub Actions

You cannot force a clear cache currently and it seems there is an open feature request for it at the moment https://github.com/actions/cache/issues/2. If I were you, I would post the request there as...

View Article

Clear cache in GitHub Actions

I am working on an R package and using GitHub Action (GHA) as a Continuous Integration (CI) provider. I cache R packages (dependencies) by using actions/cache. And now I want to clear all cache. How...

View Article

Answer by giraffesyo for Clear cache in GitHub Actions

You can clear all cache using the GitHub CLI with the following command, execute this from within the local directory where you cloned the repository:gh cache delete --allThe --all flag is documented...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images