From ab876206f90397e64750dfa14742844255a47d9e Mon Sep 17 00:00:00 2001 From: Andrew Gable Date: Fri, 25 Oct 2024 12:12:12 -0600 Subject: [PATCH] Use fetch depth in order to fetch submodule branch --- .github/workflows/deploy.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2a40d59761b3..ddcc0df2fba2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -182,15 +182,14 @@ jobs: submodules: true path: 'Mobile-Expensify' token: ${{ secrets.OS_BOTIFY_TOKEN }} + #TODO: REMOVE THIS LINE BEFORE MERGING + fetch-depth: 0 - name: Update submodule run: | git submodule update --init - # TODO: REMOVE THESE LINES BEFORE MERGING - cd .. - git config -f .gitmodules submodule.react-native.branch andrew-mobile-deploy - cd react-native - git branch -u origin/andrew-mobile-deploy andrew-mobile-deploy + # TODO: REMOVE THIS LINE BEFORE MERGING + git checkout andrew-mobile-deploy - name: Configure MapBox SDK run: ./scripts/setup-mapbox-sdk.sh ${{ secrets.MAPBOX_SDK_DOWNLOAD_TOKEN }} @@ -491,15 +490,14 @@ jobs: submodules: true path: 'Mobile-Expensify' token: ${{ secrets.OS_BOTIFY_TOKEN }} + # TODO: REMOVE THIS LINE BEFORE MERGING + fetch-depth: 0 - name: Update submodule run: | git submodule update --init - # TODO: REMOVE THESE LINES BEFORE MERGING - cd .. - git config -f .gitmodules submodule.react-native.branch andrew-mobile-deploy - cd react-native - git branch -u origin/andrew-mobile-deploy andrew-mobile-deploy + # TODO: REMOVE THIS LINE BEFORE MERGING + git checkout andrew-mobile-deploy - name: Configure MapBox SDK run: |