Skip to content

Commit d72c402

Browse files
committed
add ability to build with specific Mobile-Expensify version
1 parent 78491dc commit d72c402

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/remote-build-android.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Remote Build Android
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
mobile_expensify_pr:
7+
description: 'Mobile-Expensify PR number to use for hybrid build'
8+
required: false
9+
type: string
510
push:
611
branches-ignore: [staging, production, cherry-pick-*]
712
paths-ignore: ['docs/**', 'contributingGuides/**', 'help/**', '.github/**', 'scripts/**', 'tests/**']
@@ -35,6 +40,13 @@ jobs:
3540
with:
3641
IS_HYBRID_BUILD: ${{ matrix.is_hybrid_build && 'true' || 'false' }}
3742

43+
- name: Checkout specific Mobile-Expensify PR
44+
if: ${{ matrix.is_hybrid_build && github.event.inputs.mobile_expensify_pr }}
45+
run: |
46+
cd Mobile-Expensify
47+
git fetch origin pull/${{ github.event.inputs.mobile_expensify_pr }}/head:pr-${{ github.event.inputs.mobile_expensify_pr }}
48+
git checkout pr-${{ github.event.inputs.mobile_expensify_pr }}
49+
echo "Checked out Mobile-Expensify PR #${{ github.event.inputs.mobile_expensify_pr }}"
3850
- name: Rock Remote Build - Android
3951
# rock v3
4052
uses: callstackincubator/android@1a7d52dfe3ca195ccbe5ad2f06c15f2fc3835115

.github/workflows/remote-build-ios.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Remote Build iOS
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
mobile_expensify_pr:
7+
description: 'Mobile-Expensify PR number to use for hybrid build'
8+
required: false
9+
type: string
510
push:
611
branches-ignore: [staging, production, cherry-pick-*]
712
paths-ignore: ['docs/**', 'contributingGuides/**', 'help/**', '.github/**', 'scripts/**', 'tests/**']
@@ -39,6 +44,13 @@ jobs:
3944
with:
4045
IS_HYBRID_BUILD: ${{ matrix.is_hybrid_build && 'true' || 'false' }}
4146

47+
- name: Checkout specific Mobile-Expensify PR
48+
if: ${{ matrix.is_hybrid_build && github.event.inputs.mobile_expensify_pr }}
49+
run: |
50+
cd Mobile-Expensify
51+
git fetch origin pull/${{ github.event.inputs.mobile_expensify_pr }}/head:pr-${{ github.event.inputs.mobile_expensify_pr }}
52+
git checkout pr-${{ github.event.inputs.mobile_expensify_pr }}
53+
echo "Checked out Mobile-Expensify PR #${{ github.event.inputs.mobile_expensify_pr }}"
4254
- name: Rock Remote Build - iOS
4355
# rock v3
4456
uses: callstackincubator/ios@08a533dbeda6adec39f94d08d820091514d1f7af

0 commit comments

Comments
 (0)