Skip to content

Commit fb6280f

Browse files
author
Sean O'Brien
committed
trigger CI
1 parent 6c0ee4d commit fb6280f

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build SDK
22
on:
3-
pull_request_review:
4-
types: [ submitted ]
3+
pull_request:
4+
types: [opened, synchronize, ready_for_review]
55
branches: [ master ]
66

77
concurrency:
@@ -13,12 +13,9 @@ env:
1313
DOWNLOAD_FOLDER: '.build-scripts/'
1414
SCRIPT_LOCATION: 'workflows/start-pull-request-build/pull-request-build-v1.sh'
1515

16-
# custom variables
17-
ROLE_SESSION_DURATION_SECONDS: 7200
18-
1916
jobs:
2017
aws-sdk-pr-build:
21-
if: github.event.review.state == 'approved'
18+
if: github.event.pull_request.draft == false
2219
runs-on: ubuntu-latest
2320
permissions:
2421
id-token: write
@@ -27,11 +24,11 @@ jobs:
2724
contents: read
2825
steps:
2926
- name: Configure AWS Credentials
30-
uses: aws-actions/configure-aws-credentials@v4
27+
uses: aws-actions/configure-aws-credentials@main
3128
with:
32-
role-to-assume: ${{ vars.PR_WORKFLOW_IAM_ROLE_ARN }}
29+
role-to-assume: ${{secrets.PR_WORKFLOW_IAM_ROLE_ARN}}
3330
role-session-name: PullRequestBuildGitHubAction
34-
role-duration-seconds: ${{ env.ROLE_SESSION_DURATION_SECONDS }}
31+
role-duration-seconds: 7200
3532
aws-region: us-west-2
3633
- name: Download Build Script
3734
run: |
@@ -51,4 +48,3 @@ jobs:
5148
--pr-number "$PR_NUMBER" \
5249
--run-id "$RUN_ID"
5350
timeout-minutes: 120
54-

0 commit comments

Comments
 (0)