Skip to content

Commit 4c5f3e3

Browse files
committed
chore(ci): run pull request workflow if author has write permissions
1 parent 9cd9415 commit 4c5f3e3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Build SDK
22
on:
3+
pull_request:
4+
types: [ready_for_review]
35
pull_request_review:
46
types: [ submitted ]
57
branches: [ main ]
@@ -15,8 +17,10 @@ env:
1517

1618
jobs:
1719
aws-sdk-pr-build:
18-
if: github.event.review.state == 'approved'
19-
runs-on: ubuntu-latest
20+
if: |
21+
github.event.pull_request.author_association == 'OWNER' ||
22+
github.event.pull_request.author_association == 'COLLABORATOR' ||
23+
github.event.pull_request.author_association == 'MEMBER'
2024
permissions:
2125
id-token: write
2226
issues: write

0 commit comments

Comments
 (0)