Skip to content

Commit a94c8a2

Browse files
committed
WIP
1 parent bbb994d commit a94c8a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy-to-control-plane-review.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ jobs:
2828
- name: Check out the repo
2929
uses: actions/checkout@v2
3030

31+
3132
- name: Get PR number
3233
run: |
33-
PR_NUMBER=$(curl --location --request GET 'https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open' \
34-
--header 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
35-
| jq '.[] | select(.head.ref=="'${{ github.ref }}'") | .number')
34+
API_RESPONSE=$(curl --location --request GET 'https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open' \
35+
--header 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}')
36+
echo "API_RESPONSE: $API_RESPONSE"
37+
PR_NUMBER=$(echo $API_RESPONSE | jq '.[] | select(.head.ref=="'${{ github.ref }}'") | .number')
3638
if [ -z "$PR_NUMBER" ]; then
3739
echo "PR_NUMBER is not set. Aborting."
3840
exit 1

0 commit comments

Comments
 (0)