From 071c37f097e4446243e68355e0b7039b894a1fd3 Mon Sep 17 00:00:00 2001 From: Dion van Velde Date: Thu, 14 Nov 2024 15:53:53 +0100 Subject: [PATCH] Update global-clean-untagged-ghcr-images.yml --- .../global-clean-untagged-ghcr-images.yml | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/global-clean-untagged-ghcr-images.yml b/.github/workflows/global-clean-untagged-ghcr-images.yml index d294837c5..73ac89e11 100644 --- a/.github/workflows/global-clean-untagged-ghcr-images.yml +++ b/.github/workflows/global-clean-untagged-ghcr-images.yml @@ -5,17 +5,15 @@ on: schedule: - cron: '45 03 * * *' -jobs: - run: +jobs: + delete_versions: runs-on: ubuntu-latest - steps: - - - name: Delete all containers from repository without tags - uses: Chizkiyahu/delete-untagged-ghcr-action@v5 - with: - token: ${{ secrets.WORKFLOW_GITHUB }} - repository_owner: ${{ github.repository_owner }} - repository: ${{ github.repository }} - untagged_only: true - owner_type: user # or org + steps: + - uses: actions/delete-package-versions@v5 + with: + package-name: 'starsky' + token: ${{ secrets.WORKFLOW_GITHUB }} + package-type: 'container' + min-versions-to-keep: 10 + delete-only-untagged-versions: 'true'