From ffa7c41e0f4074f682fb70fec915d6d11116df46 Mon Sep 17 00:00:00 2001 From: BtbN Date: Sat, 18 Mar 2023 14:30:26 +0100 Subject: [PATCH] Work around PAT existence check --- .github/workflows/clean.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index 83a568a..0280d35 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -9,8 +9,11 @@ jobs: cleanup: name: Cleanup runs-on: ubuntu-latest + env: + HAVE_PAT: ${{ secrets.CLEANUP_PAT != '' }} steps: - name: Cleanup + if: ${{ env.HAVE_PAT == 'true' }} uses: Chizkiyahu/delete-untagged-ghcr-action@v2 with: token: ${{ secrets.CLEANUP_PAT }}