From cda21805624f4d2b957b196d5d6d92243c107fd5 Mon Sep 17 00:00:00 2001 From: Jonathan Sloan Date: Sun, 14 Jul 2024 17:51:31 -0400 Subject: [PATCH] use updated version of the delete-untagged-action Signed-off-by: Jonathan Sloan --- .github/workflows/cleanup.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index bb4fc28c..57235cf6 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -1,23 +1,21 @@ --- -name: Delete Untagged Container Images +name: delete untagged on: schedule: - - cron: '0 0 1 * *' # yamllint disable-line rule:quoted-strings + - cron: '5 0 * * *' # yamllint disable-line rule:quoted-strings + workflow_dispatch: + +permissions: {} jobs: cleanup: runs-on: ubuntu-latest - permissions: {} steps: # https://github.com/marketplace/actions/delete-untagged - name: Delete Untagged - uses: Chizkiyahu/delete-untagged-ghcr-action@v4 + # uses: camargo/delete-untagged-action@v1 + uses: jsloan117/delete-untagged-action@v1.0.1 with: - token: ${{ secrets.PKG_CLEANUP_KEY }} - owner_type: user - repository: ${{ github.repository }} - repository_owner: ${{ github.repository_owner }} - untagged_only: true - except_untagged_multiplatform: true - + github-token: ${{ secrets.PKG_CLEANUP }} + personal-account: true