File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -45,19 +45,23 @@ jobs:
45
45
outputs :
46
46
PR_OPEN : ${{ steps.check_pr.outputs.pr_open }}
47
47
steps :
48
+ - name : Checkout
49
+ uses : actions/checkout@v2
50
+ with :
51
+ ref : ${{ github.ref }}
52
+
48
53
- name : Check if PR is open
49
54
id : check_pr
50
55
run : |
51
56
set -euo pipefail
52
57
pr_open=true
53
- if [[ "$(gh pr view $PR_BRANCH --json state | jq -r '.state')" != "true " ]]; then
58
+ if [[ "$(gh pr view --json state | jq -r '.state')" != "OPEN " ]]; then
54
59
echo "PR doesn't exist or is closed."
55
60
pr_open=false
56
61
fi
57
62
echo "pr_open=$pr_open" >> $GITHUB_OUTPUT
58
63
env :
59
64
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
- PR_BRANCH : ${{ github.ref }}
61
65
62
66
get_info :
63
67
needs : check_pr
87
91
echo "PR_BRANCH=$PR_BRANCH" >> $GITHUB_OUTPUT
88
92
env :
89
93
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
90
- PR_BRANCH : ${{ github.ref } }
94
+ PR_BRANCH : ${${{ github.ref}}#refs/heads/ }
91
95
92
96
- name : Set required tags
93
97
id : set_tags
You can’t perform that action at this time.
0 commit comments