Skip to content

Commit ffe6c27

Browse files
authored
Refactor PR_NUMBER handling in deploy.yml
Updated the way PR_NUMBER is retrieved and echoed in the deploy workflow.
1 parent c73bfef commit ffe6c27

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@ jobs:
212212
run: |
213213
echo "inside pr_number=$PR_NUMBER"
214214
echo "Before pr_number=$PR_NUMBER"
215-
PR='${{ steps.pr.outputs.PR_NUMBER }}'
216-
echo "USING PR =$PR"
215+
PR_NUMBER='${{ steps.pr.outputs.PR_NUMBER }}'
216+
echo "USING PR_NUMBER =$PR_NUMBER"
217217
218-
PR_API_URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}/pulls"
219-
PR_NUMBER=$(curl -s -H "Accept: application/vnd.github.groot-preview+json" \
220-
-H "Authorization: Bearer $GITHUB_TOKEN" \
221-
$PR_API_URL | jq '.[0].number')
218+
#PR_API_URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}/pulls"
219+
#PR_NUMBER=$(curl -s -H "Accept: application/vnd.github.groot-preview+json" \
220+
# -H "Authorization: Bearer $GITHUB_TOKEN" \
221+
# $PR_API_URL | jq '.[0].number')
222222
echo "after pr_number=$PR_NUMBER"
223223
224224
aws s3 sync s3://$S3_BUCKET_NAME/mergeRequest/$PR_NUMBER s3://$S3_BUCKET_NAME/production/

0 commit comments

Comments
 (0)