LoginSignup
1
0

GitHub Actionsのストレージ容量オーバーの対処

Posted at
Create Artifact Container failed: Artifact storage quota has been hit. Unable to upload any new artifacts

レポートを出力するものを使うとすぐ容量オーバーする。ちな自分はPlaywrightのGithub Actionsのテンプレ使ってたらいつの間にか容量オーバーした

全消し

個人的にコレが使いやすい↓

name: 'artifacts cleanup'
on:
  workflow_dispatch:

jobs:
  delete-artifacts:
    runs-on: ubuntu-latest
    steps:
      - uses: kolpav/purge-artifacts-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          expire-in: 0

expire-in0にすると全消し。workflow_dispatchは手動実行出来て便利なのでおまじないのようにとりあえずつけてる

で実行すると

image.png

削除権限がないのでSettings > Actions > General > Workflow permissionsRead and write permissionsに変更

image.png

こういうのはエラーになって初めて知るから嫌になっちゃう

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0