From b1a7a97a3df469d841d44a05063bca5eb5405a6b Mon Sep 17 00:00:00 2001 From: pmacius Date: Thu, 14 Nov 2024 15:37:33 +0100 Subject: [PATCH] back --- .github/workflows/cleanup_images.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cleanup_images.yml b/.github/workflows/cleanup_images.yml index 97ff1a00..5a18c4e1 100644 --- a/.github/workflows/cleanup_images.yml +++ b/.github/workflows/cleanup_images.yml @@ -87,15 +87,15 @@ jobs: older-than: ${{ env.PERIOD }} dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run || (github.event_name != 'workflow_dispatch' && 'false') }} - # - name: Remove images when requested - # uses: dataaxiom/ghcr-cleanup-action@98b4022383d6ddb70ccbf6a378b4d8c67a60f066 # v1.0.13 - # if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' - # with: - # token: ${{ secrets.DELETE_PACKAGES_GITHUB_TOKEN }} - # owner: ${{ env.ORG }} - # repository: ${{ env.REPO }} - # packages: ${{ env.PACKAGE_NAMES }},${{ env.CACHE_REPO }} - # delete-untagged: ${{ github.event_name == 'schedule' || inputs.untagged }} - # delete-tags: ${{ github.event.inputs.tags }} - # use-regex: true - # dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run || (github.event_name != 'workflow_dispatch' && 'false') }} + - name: Remove images when requested + uses: dataaxiom/ghcr-cleanup-action@98b4022383d6ddb70ccbf6a378b4d8c67a60f066 # v1.0.13 + if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' + with: + token: ${{ secrets.DELETE_PACKAGES_GITHUB_TOKEN }} + owner: ${{ env.ORG }} + repository: ${{ env.REPO }} + packages: ${{ env.PACKAGE_NAMES }},${{ env.CACHE_REPO }} + delete-untagged: ${{ github.event_name == 'schedule' || inputs.untagged }} + delete-tags: ${{ github.event.inputs.tags }} + use-regex: true + dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run || (github.event_name != 'workflow_dispatch' && 'false') }}