From 6c98311faf461ced1d03adc50edccca101793a66 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Tue, 7 Apr 2026 12:54:42 +0200 Subject: [PATCH] ci: Gate size analysis on ready-to-merge label for PRs Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/size-analysis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/size-analysis.yml b/.github/workflows/size-analysis.yml index f116df460d..a0a88d7845 100644 --- a/.github/workflows/size-analysis.yml +++ b/.github/workflows/size-analysis.yml @@ -26,7 +26,15 @@ env: RN_SENTRY_POD_NAME: RNSentry jobs: + ready-to-merge-gate: + name: Ready-to-merge gate + uses: ./.github/workflows/ready-to-merge-workflow.yml + with: + is-pr: ${{ github.event_name == 'pull_request' }} + labels: ${{ toJson(github.event.pull_request.labels) }} + android: + needs: [ready-to-merge-gate] name: Android Size Analysis runs-on: ubuntu-latest timeout-minutes: 30 @@ -81,6 +89,7 @@ jobs: --build-configuration "Release" ios: + needs: [ready-to-merge-gate] name: iOS Size Analysis runs-on: ["ghcr.io/cirruslabs/macos-tahoe-xcode:26.2.0", "runner_group_id:10"] timeout-minutes: 45