Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/cherryPick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
run: |
git submodule foreach '\
git config --add remote.origin.fetch "+refs/heads/staging:refs/remotes/origin/staging" && \
git config --add remote.origin.fetch "+refs/heads/production:refs/remotes/origin/production" && \
git config --add remote.origin.fetch "+refs/tags/*:refs/tags/*"'
git config --add remote.origin.fetch "+refs/heads/production:refs/remotes/origin/production"'

- name: Set up git for OSBotify
id: setupGitForOSBotify
Expand All @@ -53,9 +52,20 @@ jobs:

- name: Fetch history of relevant refs
run: |
git fetch origin main staging --no-tags --shallow-exclude ${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }}
# Temporary hack during transition when -staging suffix is being added to tags
if git ls-remote origin refs/tags/${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }} | grep -q . ; then
git fetch origin main staging --no-recurse-submodules --no-tags --shallow-exclude ${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }}
else
git fetch origin main staging --no-recurse-submodules --no-tags --shallow-exclude ${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }}-staging
fi

cd Mobile-Expensify
git fetch origin main staging --no-tags --shallow-exclude ${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }}
# Temporary hack during transition when -staging suffix is being added to tags
if git ls-remote origin refs/tags/${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }} | grep -q . ; then
git fetch origin main staging --no-recurse-submodules --no-tags --shallow-exclude ${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }}
else
git fetch origin main staging --no-recurse-submodules --no-tags --shallow-exclude ${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }}-staging
fi

- name: Get E/App version bump commit
id: getVersionBumpCommit
Expand Down