Skip to content

Commit 08fa704

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 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,11 @@ 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.review.state == 'approved' ||
22+
github.event.pull_request.author_association == 'OWNER' ||
23+
github.event.pull_request.author_association == 'COLLABORATOR' ||
24+
github.event.pull_request.author_association == 'MEMBER'
2025
permissions:
2126
id-token: write
2227
issues: write

0 commit comments

Comments
 (0)