Skip to content

Commit

Permalink
Remove fetch depth 0 for hybrid app builds
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Oct 31, 2024
1 parent 090a322 commit 2416af5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy code to staging or production

on:
push:
branches: [staging, production]
branches: [staging, production, andrew-fetch-depth2]

env:
SHOULD_DEPLOY_PRODUCTION: ${{ github.ref == 'refs/heads/production' }}
Expand Down Expand Up @@ -182,14 +182,13 @@ jobs:
submodules: true
path: 'Mobile-Expensify'
token: ${{ secrets.OS_BOTIFY_TOKEN }}
fetch-depth: 0

- name: Update submodule
run: |
git submodule update --init
# Update submodule to latest on staging
git fetch
git checkout staging
git fetch --depth=1 origin staging
git checkout -b staging origin/staging
- name: Configure MapBox SDK
run: ./scripts/setup-mapbox-sdk.sh ${{ secrets.MAPBOX_SDK_DOWNLOAD_TOKEN }}
Expand Down Expand Up @@ -482,14 +481,13 @@ jobs:
submodules: true
path: 'Mobile-Expensify'
token: ${{ secrets.OS_BOTIFY_TOKEN }}
fetch-depth: 0

- name: Update submodule
run: |
git submodule update --init
# Update submodule to latest on staging
git fetch
git checkout staging
git fetch --depth=1 origin staging
git checkout -b staging origin/staging
- name: Configure MapBox SDK
run: |
Expand Down

0 comments on commit 2416af5

Please sign in to comment.