From a933a10ad950a99ad52417476b2129893bea66f3 Mon Sep 17 00:00:00 2001 From: Tomasz Lesniakiewicz Date: Thu, 4 Sep 2025 16:24:14 +0200 Subject: [PATCH] add ability to build remote with specific Mobile-Expensify version --- .github/workflows/remote-build-android.yml | 13 +++++++++++++ .github/workflows/remote-build-ios.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/remote-build-android.yml b/.github/workflows/remote-build-android.yml index c7f0923c8611..aa4fa55aa007 100644 --- a/.github/workflows/remote-build-android.yml +++ b/.github/workflows/remote-build-android.yml @@ -2,6 +2,11 @@ name: Remote Build Android on: workflow_dispatch: + inputs: + mobile_expensify_pr: + description: 'Mobile-Expensify PR number to use for hybrid build' + required: false + type: string push: branches-ignore: [staging, production, cherry-pick-*] paths-ignore: ['docs/**', 'contributingGuides/**', 'help/**', '.github/**', 'scripts/**', 'tests/**'] @@ -35,6 +40,14 @@ jobs: with: IS_HYBRID_BUILD: ${{ matrix.is_hybrid_build && 'true' || 'false' }} + - name: Checkout specific Mobile-Expensify PR + if: ${{ matrix.is_hybrid_build && github.event.inputs.mobile_expensify_pr }} + run: | + cd Mobile-Expensify + git fetch origin pull/${{ github.event.inputs.mobile_expensify_pr }}/head:pr-${{ github.event.inputs.mobile_expensify_pr }} + git checkout pr-${{ github.event.inputs.mobile_expensify_pr }} + echo "Checked out Mobile-Expensify PR #${{ github.event.inputs.mobile_expensify_pr }}" + - name: RNEF Remote Build - Android # rnef v2 uses: callstackincubator/android@d9a81f860e436ff2971323990244e32830dcabd1 diff --git a/.github/workflows/remote-build-ios.yml b/.github/workflows/remote-build-ios.yml index 7429700cfa9c..02ee5b88b9d1 100644 --- a/.github/workflows/remote-build-ios.yml +++ b/.github/workflows/remote-build-ios.yml @@ -2,6 +2,11 @@ name: Remote Build iOS on: workflow_dispatch: + inputs: + mobile_expensify_pr: + description: 'Mobile-Expensify PR number to use for hybrid build' + required: false + type: string push: branches-ignore: [staging, production, cherry-pick-*] paths-ignore: ['docs/**', 'contributingGuides/**', 'help/**', '.github/**', 'scripts/**', 'tests/**'] @@ -39,6 +44,14 @@ jobs: with: IS_HYBRID_BUILD: ${{ matrix.is_hybrid_build && 'true' || 'false' }} + - name: Checkout specific Mobile-Expensify PR + if: ${{ matrix.is_hybrid_build && github.event.inputs.mobile_expensify_pr }} + run: | + cd Mobile-Expensify + git fetch origin pull/${{ github.event.inputs.mobile_expensify_pr }}/head:pr-${{ github.event.inputs.mobile_expensify_pr }} + git checkout pr-${{ github.event.inputs.mobile_expensify_pr }} + echo "Checked out Mobile-Expensify PR #${{ github.event.inputs.mobile_expensify_pr }}" + - name: RNEF Remote Build - iOS # rnef v2 uses: callstackincubator/ios@7847e0676242cefa801cba8ede6736140b7bae91