I have a GitHub workflow that creates APKs for my Flutter app. This worked fine until recently, I seem to have exhausted some kind of quota. Now when the workflow runs I get this error:
Create Artifact Container failed: Artifact storage quota has been hit. Unable to upload any new artifacts
I assumed that deleting all artifacts would free up the space again so I used another workflow to achieve this:
name: 'Delete old artifacts'
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
delete-artifacts:
runs-on: ubuntu-latest
steps:
- uses: kolpav/purge-artifacts-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
expire-in: 0days
The new workflow seems to be working, I no longer see the old files in the GitHub UI. However, I still get the error when trying to run the APK workflow. Any ideas how to fix this error?
Update:
My GitHub says I have used up my included services (free version). Is there a way to undo that? Simply deleting the artifacts does not seem to be enough.
You can actually delete old artifacts to bypass this. Just go to your actions, click on a previous build and check if there are stored artifacts at the bottom of the page. There is a recycle bin icon you can click to delete it.
You can also specify when Github deletes old artifacts automatically for you. You go into Settings -> Actions -> General and find "Artifact and log retention".
Note it might take some time for Github to update the completed quota.
See also official docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With