diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a9c902f2e..b682012dc 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -24,3 +24,18 @@ jobs: operations-per-run: 120 - name: Print outputs run: echo ${{ join(steps.stale.outputs.*, ',') }} + + clean_ghcr: + name: Delete outdated dev container images + runs-on: ubuntu-latest + steps: + - name: Delete old images + uses: snok/container-retentation-policy@v2 + with: + image-names: dev-* + cut-off: 60 days ago UTC + keep-at-least: 5 + account-type: personal + token: ${{ secrets.GITHUB_TOKEN }} + token-type: github-token +