Skip to content

Commit 3ce5254

Browse files
antonisclaude
andauthored
ci: Gate size analysis on ready-to-merge label for PRs (#5963)
* ci: Gate size analysis on ready-to-merge label for PRs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ci: Add labeled event type to pull_request trigger Without the labeled event type, adding the ready-to-merge label does not re-trigger the workflow, blocking size analysis on all PRs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f610e85 commit 3ce5254

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/size-analysis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- 'samples/react-native/**'
1010
- '.github/workflows/size-analysis.yml'
1111
pull_request:
12+
types: [opened, synchronize, reopened, labeled]
1213
paths:
1314
- 'packages/**'
1415
- 'samples/react-native/**'
@@ -26,7 +27,15 @@ env:
2627
RN_SENTRY_POD_NAME: RNSentry
2728

2829
jobs:
30+
ready-to-merge-gate:
31+
name: Ready-to-merge gate
32+
uses: ./.github/workflows/ready-to-merge-workflow.yml
33+
with:
34+
is-pr: ${{ github.event_name == 'pull_request' }}
35+
labels: ${{ toJson(github.event.pull_request.labels) }}
36+
2937
android:
38+
needs: [ready-to-merge-gate]
3039
name: Android Size Analysis
3140
runs-on: ubuntu-latest
3241
timeout-minutes: 30
@@ -81,6 +90,7 @@ jobs:
8190
--build-configuration "Release"
8291
8392
ios:
93+
needs: [ready-to-merge-gate]
8494
name: iOS Size Analysis
8595
runs-on: ["ghcr.io/cirruslabs/macos-tahoe-xcode:26.2.0", "runner_group_id:10"]
8696
timeout-minutes: 45

0 commit comments

Comments
 (0)