diff --git a/.github/workflows/delete-artifacts.yml b/.github/workflows/delete-artifacts.yml index 7b77c488..2af777a6 100644 --- a/.github/workflows/delete-artifacts.yml +++ b/.github/workflows/delete-artifacts.yml @@ -11,14 +11,12 @@ jobs: needs: hardening runs-on: ubuntu-latest steps: - - name: Checkout target branch + - name: Checkout uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - with: - ref: ${{ github.event.pull_request.head.ref }}-artifacts - name: Delete artifact target branch id: delete-artifact-target-branch env: TARGET_BRANCH: ${{ github.event.pull_request.head.ref }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git push origin :"tmp-$TARGET_BRANCH-artifacts" || echo "Could not delete $TARGET_BRANCH-artifacts" + git push origin :"tmp-$TARGET_BRANCH-artifacts" || echo "Could not delete tmp-$TARGET_BRANCH-artifacts"