We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8073429 commit c224bc4Copy full SHA for c224bc4
1 file changed
.github/workflows/delete-pr-build-on-close.yml
@@ -25,13 +25,16 @@ jobs:
25
- name: Delete pre-release and tag named after branch
26
env:
27
GH_TOKEN: ${{ github.token }}
28
+ PR_BRANCH: ${{ github.event.pull_request.head.ref }}
29
+ PR_NUMBER: ${{ github.event.pull_request.number }}
30
+ PR_REPO: ${{ github.event.pull_request.head.repo.full_name }}
31
shell: bash
32
run: |
33
# Use either an upstream or fork PR branch
- if [[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
- BRANCH="pull/${{ github.event.pull_request.number }}/head"
34
+ if [[ "$PR_REPO" != "slackapi/slack-cli" ]]; then
35
+ BRANCH="pull/$PR_NUMBER/head"
36
else
- BRANCH="${{ github.event.pull_request.head.ref }}"
37
+ BRANCH="$PR_BRANCH"
38
fi
39
40
# Escape tags to create a semantic version
0 commit comments