Managing Actions storage space #26542
-
On https://github.com/organizations/my-org/settings/billing I can see that our organization is using 2.5 GBs (out of which 2 would be free). I also see these warnings: > You’ve used 100% of included services for GitHub Storage (GitHub Actions and Packages) > GitHub Actions and Packages won’t work until a monthly spending limit is set. Nevertheless, Actions still fully works. It is not clear what counts towards this usage, what this restriction will affect and how to mitigate it. We extensively use caching and artifacts features. I’m assuming that either or both count towards the limit. We especially have large (~100MB) artifacts for a certain job (my guess for the culprit). This would result in an infinitely growing storage size. I have a few observations / possibly feature requests:
|
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 1 reply
-
After reaching out to support I got the following response:
|
Beta Was this translation helpful? Give feedback.
-
It is now possible to delete artifacts manually.
|
Beta Was this translation helpful? Give feedback.
-
Do you know if there is a setting to change this value? |
Beta Was this translation helpful? Give feedback.
-
“Visit a build”? What is meant by this? The term build isn’t really used anywhere in GitHubs vocabulary. Do you mean the result of a GitHub Action job? Or a built package in the Packages repo? In either case, I don’t see anything related to artifacts or removal. |
Beta Was this translation helpful? Give feedback.
-
Our team has created an Action to periodically clean up old artifacts: https://github.com/c-hive/gha-remove-artifacts It also supports keeping tagged (release) artifacts. |
Beta Was this translation helpful? Give feedback.
-
There isn’t one at the moment but we created an action to solve this, see the accepted solution: https://github.community/t5/GitHub-Actions/Managing-Actions-storage-space/m-p/51291#M8134 |
Beta Was this translation helpful? Give feedback.
-
Actions -> Select a run in the list -> Select a job on the left side You end up at e.g. https://github.com/org/repo/runs/533166375 In the upper-right corner, you will see an |
Beta Was this translation helpful? Give feedback.
-
Hey! What do you mean by old artifacts? The one before the previous builds artifacts and releases right? |
Beta Was this translation helpful? Give feedback.
-
Is there a way we can find out which artifacts are using the most space? |
Beta Was this translation helpful? Give feedback.
-
You can use “Get usage report” option in billing section, it shows daily usage stats for each repo you have including storage usage |
Beta Was this translation helpful? Give feedback.
Our team has created an Action to periodically clean up old artifacts:
https://github.com/c-hive/gha-remove-artifacts
It also supports keeping tagged (release) artifacts.