Skip to content

Commit 8064c9c

Browse files
committed
updated rest of PR to match js
1 parent 4a033ac commit 8064c9c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/pull-request-build.yaml.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ env:
1414
DOWNLOAD_FOLDER: '.build-scripts/'
1515
SCRIPT_LOCATION: 'workflows/start-pull-request-build/pull-request-build-v1.sh'
1616

17-
# custom variables
18-
ROLE_SESSION_DURATION_SECONDS: 7200
19-
2017
jobs:
2118
aws-sdk-pr-build:
2219
if: github.event.review.state == 'approved'
@@ -32,8 +29,9 @@ jobs:
3229
with:
3330
role-to-assume: ${{ env.IAM_ROLE_ARN }}
3431
role-session-name: PullRequestBuildGitHubAction
35-
role-duration-seconds: '$ROLE_SESSION_DURATION_SECONDS'
32+
3633
aws-region: us-west-2
34+
role-duration-seconds: 7200
3735
- name: Download Build Script
3836
run: |
3937
aws s3 cp s3://aws-sdk-builds-github-assets-prod-us-west-2/$SCRIPT_LOCATION ./$DOWNLOAD_FOLDER/$SCRIPT_LOCATION --no-progress
@@ -47,8 +45,8 @@ jobs:
4745
RUN_ID: ${{ github.run_id }}
4846
run: |
4947
./$DOWNLOAD_FOLDER/$SCRIPT_LOCATION \
50-
--repo "$REPO" \
48+
--repo "${{ github.repository }}" \
5149
--branch "$HEAD_REF" \
52-
--pr-number "$PR_NUMBER" \
53-
--run-id "$RUN_ID"
50+
--pr-number "${{ github.event.pull_request.number }}" \
51+
--run-id "${{ github.run_id }}"
5452
timeout-minutes: 180

0 commit comments

Comments
 (0)