cache icon indicating copy to clipboard operation
cache copied to clipboard

GitHub Actions: Cache Mangement

Open ahdbilal opened this issue 4 years ago • 3 comments

The GitHub Actions team is considering adding cache management capability, which will enable viewing and deleting cache entries. We’d greatly appreciate it if you can complete a 2-min survey to provide us your feedback!

Thank you

ahdbilal avatar Sep 03 '21 02:09 ahdbilal

Actions Cache Usage API is now LIVE

You can now monitor the storage usage of your existing caches and get greater control over cache availability for your action workflows.

Actions users who use actions/cache to speed up their workflow execution times can now use our cache usage APIs to:

  • query the cache usage within each repository and monitor if the total size of all caches is reaching the upper limit of 10 GB,
  • monitor aggregate cache usage at organization level or even at enterprise level, if your GitHub organization is owned by an enterprise account.

Learn more about Managing caching dependencies to speed up workflows.

There’s more in store for Cache Management as we plan to also support view and delete cache functionalities.

N-Usha avatar Mar 30 '22 05:03 N-Usha

List and delete cache APIs are now available for managing your Actions Cache

You can now get more transparency and control over dependency caching in your actions workflows using our cache list and delete APIs to:

  • list all the Actions caches within a repository and sort by specific metadata like cache size, creation time or last accessed time.
  • delete a corrupt or a stale cache entry by providing the cache key or ID.

We believe with the cache usage APIs that we shipped earlier and these new List & delete APIs, Cache management within GitHub workflows would be super seamless.

And thats not it... we are also plan to enrich these experiences further by adding support for these in both GitHub CLI as well as UI.

Learn more about Managing caching dependencies to speed up workflows.

N-Usha avatar Jul 01 '22 14:07 N-Usha

Now manage Actions cache from your terminal with the new GitHub CLI extension for cache: 📢 📢

gh extension install actions/gh-actions-cache 

This extension is built on top of GitHub APIs for cache management

N-Usha avatar Aug 09 '22 22:08 N-Usha

📢 Cache management is now much simpler with ability to list cache metadata and delete cache for a repo. Additionally, Org admins can view usage across repos. Managing caches Managing caches for organizations

bishal-pdMSFT avatar Nov 16 '22 13:11 bishal-pdMSFT