Skip to content

Commit

Permalink
Use fetch depth in order to fetch submodule branch
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Oct 25, 2024
1 parent 337223c commit ab87620
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit ab87620

Please sign in to comment.