|
7 | 7 | - v5 |
8 | 8 | - release/** |
9 | 9 | pull_request: |
| 10 | + types: [opened, synchronize, reopened, labeled] |
10 | 11 |
|
11 | 12 | concurrency: |
12 | 13 | group: ${{ github.workflow }}-${{ github.ref }} |
|
24 | 25 | auth_token_check: |
25 | 26 | uses: ./.github/workflows/skip-ci-noauth.yml |
26 | 27 | secrets: inherit |
| 28 | + ready-to-merge-gate: |
| 29 | + name: Ready-to-merge gate |
| 30 | + uses: ./.github/workflows/ready-to-merge-workflow.yml |
| 31 | + with: |
| 32 | + is-pr: ${{ github.event_name == 'pull_request' }} |
| 33 | + labels: ${{ toJson(github.event.pull_request.labels) }} |
27 | 34 | metrics: |
28 | 35 | runs-on: ${{ matrix.runs-on }} |
29 | | - needs: [diff_check, auth_token_check] |
| 36 | + needs: [ready-to-merge-gate,diff_check, auth_token_check] |
30 | 37 | if: ${{ needs.diff_check.outputs.skip_ci != 'true' && needs.auth_token_check.outputs.skip_ci != 'true' && !startsWith(github.ref, 'refs/heads/release/') }} |
31 | 38 | env: |
32 | 39 | SENTRY_DISABLE_AUTO_UPLOAD: 'true' |
@@ -158,7 +165,7 @@ jobs: |
158 | 165 | react-native-build: |
159 | 166 | name: Build RN ${{ matrix.rn-version }} ${{ matrix.rn-architecture }} ${{ matrix.engine }} ${{ matrix.platform }} ${{ matrix.build-type }} ${{ matrix.ios-use-frameworks }} |
160 | 167 | runs-on: ${{ matrix.runs-on }} |
161 | | - needs: [diff_check, auth_token_check] |
| 168 | + needs: [ready-to-merge-gate,diff_check, auth_token_check] |
162 | 169 | if: ${{ needs.diff_check.outputs.skip_ci != 'true' && needs.auth_token_check.outputs.skip_ci != 'true' && !startsWith(github.ref, 'refs/heads/release/') }} |
163 | 170 | env: |
164 | 171 | RN_VERSION: ${{ matrix.rn-version }} |
@@ -294,7 +301,7 @@ jobs: |
294 | 301 | name: |
295 | 302 | Test RN ${{ matrix.rn-version }} ${{ matrix.rn-architecture }} ${{ matrix.engine }} ${{ matrix.platform }} ${{ |
296 | 303 | matrix.build-type }} ${{ matrix.ios-use-frameworks }} |
297 | | - needs: [react-native-build, diff_check] |
| 304 | + needs: [ready-to-merge-gate, react-native-build, diff_check] |
298 | 305 | if: ${{ needs.diff_check.outputs.skip_ci != 'true' }} |
299 | 306 |
|
300 | 307 | runs-on: ${{ matrix.runs-on }} |
|
0 commit comments