|
6 | 6 | - '*' |
7 | 7 | branches: |
8 | 8 | - '**' |
9 | | - pull_request: |
10 | | - types: [opened, synchronize, reopened, ready_for_review] |
| 9 | + pull_request_review: |
| 10 | + types: |
| 11 | + - 'submitted' |
11 | 12 |
|
12 | 13 | concurrency: |
13 | 14 | group: ${{ github.workflow }}-${{ github.ref }} |
|
21 | 22 | !endsWith(github.event.head_commit.message, '# ci skip') && |
22 | 23 | !startsWith(github.ref, 'refs/heads/test_process') && |
23 | 24 | ( |
24 | | - github.event_name != 'pull_request' || |
| 25 | + (github.event_name != 'pull_request_review') || |
25 | 26 | ( |
26 | | - github.event_name == 'pull_request' && |
27 | | - github.event.pull_request.draft == false && |
| 27 | + github.event.review.state == 'approved' && |
28 | 28 | github.event.pull_request.head.repo.owner.id == github.event.pull_request.base.repo.owner.id |
29 | 29 | ) |
30 | 30 | ) |
@@ -147,12 +147,8 @@ jobs: |
147 | 147 | !startsWith(github.ref, 'refs/heads/test_process') && |
148 | 148 | !startsWith(github.ref, 'refs/heads/test_website') && |
149 | 149 | ( |
150 | | - github.event_name != 'pull_request' || |
151 | | - ( |
152 | | - github.event_name == 'pull_request' && |
153 | | - github.event.pull_request.draft == false && |
154 | | - github.actor != 'dependabot[bot]' |
155 | | - ) |
| 150 | + github.event_name != 'pull_request_review' || |
| 151 | + github.event.review.state == 'approved' |
156 | 152 | ) |
157 | 153 |
|
158 | 154 | outputs: |
@@ -374,7 +370,7 @@ jobs: |
374 | 370 | always() && |
375 | 371 | !endsWith(github.event.head_commit.message, '# ci skip') && |
376 | 372 | needs.build_images.result == 'success' && |
377 | | - github.event_name != 'pull_request' && |
| 373 | + github.event_name != 'pull_request_review' && |
378 | 374 | ( |
379 | 375 | needs.run_tester.result == 'success' || |
380 | 376 | needs.run_tester.result == 'skipped' |
|
0 commit comments