Add GitHub Actions workflow to clean up caches #4
luisaveiro
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The "Setup Node" composite action enables caching on the actions/setup-node GitHub Actions. The
actions/setup-node
has built-in functionality for caching and restoring dependencies. It uses actions/cache GitHub Actions under the hood for caching global package data but requires fewer configuration settings.Utilising caching in our GitHub Actions makes our workflows faster, and more efficient. This helps to reduce the billable time for GitHub Actions. However, we need to automate the process of managing GitHub Actions caches and automatically delete cache that is no longer needed (e.g. cache from merged pull requests).
According to GitHub documentation for force deleting cache entries.
GitHub documentation includes an example workflow that uses
gh-actions-cache
to delete up to 100 caches created by a branch once a pull request is closed.Beta Was this translation helpful? Give feedback.
All reactions