File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ jobs:
28
28
- name : Check out the repo
29
29
uses : actions/checkout@v2
30
30
31
-
32
31
- name : Get PR number
33
32
run : |
34
- echo "GITHUB_REPOSITORY: ' $GITHUB_REPOSITORY' "
35
- API_RESPONSE=$(curl --location --request GET ' https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open' \
33
+ echo "GITHUB_REPOSITORY: \" $GITHUB_REPOSITORY\" "
34
+ API_RESPONSE=$(curl --location --request GET " https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open" \
36
35
--header 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}')
37
36
echo "API_RESPONSE: $API_RESPONSE"
38
37
PR_NUMBER=$(echo $API_RESPONSE | jq '.[] | select(.head.ref=="'${{ github.ref }}'") | .number')
38
+ echo "PR_NUMBER: $PR_NUMBER"
39
39
if [ -z "$PR_NUMBER" ]; then
40
40
echo "PR_NUMBER is not set. Aborting."
41
41
exit 1
You can’t perform that action at this time.
0 commit comments