File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ jobs:
277
277
#
278
278
# This job will only run on push events made to test-this-pr/** branches
279
279
if : github.event_name == 'push' && contains(github.ref, 'test-this-pr')
280
+ environment : test-this-pr-env
280
281
runs-on : ubuntu-latest
281
282
steps :
282
283
# Poll the GitHub REST API and wait for staging-deploy job to finish
@@ -290,7 +291,7 @@ jobs:
290
291
while [ "$STATUS" != "completed" ]; do
291
292
RESPONSE=$(curl --silent --request GET \
292
293
--url 'https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs' \
293
- --header 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' \
294
+ --header 'Authorization: token ${{ secrets.TEST_THIS_PR_ACCESS_TOKEN }}' \
294
295
--header 'Accept: application/vnd.github.v3+json')
295
296
296
297
STATUS=$(echo $RESPONSE | jq -r '.jobs[] | select(.name | startswith("staging-deploy")) | .status')
@@ -318,7 +319,7 @@ jobs:
318
319
if : ${{ steps.staging-deploy-status.outputs.status }} == 'completed'
319
320
320
321
with :
321
- github-token : ${{ secrets.GITHUB_TOKEN }}
322
+ github-token : ${{ secrets.TEST_THIS_PR_ACCESS_TOKEN }}
322
323
script : |
323
324
var JOB_STATUS = process.env.JOB_STATUS;
324
325
var PR_NUMBER = process.env.PR_NUMBER;
You can’t perform that action at this time.
0 commit comments