Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

[GitHub Actions]: Create Artifact Container failed: Artifact storage quota has been hit. Unable to upload any new artifacts

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. enter image description here

like image 918
Josip Domazet Avatar asked Sep 01 '25 17:09

Josip Domazet


1 Answers

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.

Artifact

You can also specify when Github deletes old artifacts automatically for you. You go into Settings -> Actions -> General and find "Artifact and log retention".

Artifact and log retention

Note it might take some time for Github to update the completed quota.

See also official docs.

like image 115
jakobinn Avatar answered Sep 04 '25 08:09

jakobinn