diff --git a/.github/workflows/cleanup_pr.yml b/.github/workflows/cleanup_pr.yml index 863a7a57bb3..51283cb3e7e 100644 --- a/.github/workflows/cleanup_pr.yml +++ b/.github/workflows/cleanup_pr.yml @@ -13,7 +13,7 @@ jobs: - name: Extract branch name id: extract_branch run: | - echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + echo "##[set-output name=branch;]$(echo ${${{ github.event.pull_request.head.ref }}#refs/heads/})" - name: Delete folder on builds.jabref.org uses: appleboy/ssh-action@v0.0.6 with: