diff --git a/.github/workflows/image-cleanup.yml b/.github/workflows/image-cleanup.yml index 335aa7e3..a6c0bf3a 100644 --- a/.github/workflows/image-cleanup.yml +++ b/.github/workflows/image-cleanup.yml @@ -9,21 +9,17 @@ jobs: delete-images: name: Delete PR-scoped test images runs-on: ubuntu-latest - + if: github.repository_owner == 'cryostatio' strategy: matrix: image: [cryostat-operator, cryostat-operator-bundle, cryostat-operator-scorecard] steps: - - name: Delete Docker images - uses: r26d/ghcr-delete-image-action@v1.2.2 - with: - owner: ${{ github.repository_owner }} - name: ${{ matrix.image }} - token: ${{ secrets.GHCR_PR_TOKEN }} - ignore-missing-package: true - tag-regex: pr-${{ github.event.number }}-.* - tagged-keep-latest: 0 - - if: github.repository_owner == 'cryostatio' - - + - name: Delete Docker images + uses: r26d/ghcr-delete-image-action@v1.2.2 + with: + owner: ${{ github.repository_owner }} + name: ${{ matrix.image }} + token: ${{ secrets.GHCR_PR_TOKEN }} + ignore-missing-package: true + tag-regex: pr-${{ github.event.number }}-.* + tagged-keep-latest: 0