From 718ef70db818d92b01029a2524d2bc1e55d25082 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Wed, 26 Mar 2025 13:55:14 +0100 Subject: [PATCH] Only clean GHCR images if we actually push to GHCR --- .github/workflows/docker-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml index 324da40..4335f9f 100644 --- a/.github/workflows/docker-ci.yml +++ b/.github/workflows/docker-ci.yml @@ -84,7 +84,7 @@ jobs: tidy-ghcr: name: Tidy GHCR images (${{ inputs.image-name }}) runs-on: ubuntu-latest - if: ${{ inputs.ghcr-retention-policy != 'keep' }} + if: ${{ inputs.ghcr-retention-policy != 'keep' && (inputs.push-to == 'ghcr' || inputs.push-to == 'both') }} steps: - name: Compute image name