Skip to content

Commit b4c69f2

Browse files
authored
Merge pull request #5473 from Expensify/Rory-UpdateDeployChecklistWithManualCP
2 parents 1fdfbd7 + 2bd1387 commit b4c69f2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/cherryPick.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,25 @@ jobs:
189189
GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }}
190190
PULL_REQUEST: ${{ steps.createPullRequest.outputs.pr_number }}
191191

192+
# Create a local git tag on staging so that GitUtils.getPullRequestsMergedBetween can use `git log` to generate a
193+
# list of pull requests that were merged between this version tag and another.
194+
# NOTE: This tag is only used locally and shouldn't be pushed to the remote.
195+
# If it was pushed, that would trigger the staging deploy which is handled in a separate workflow (deploy.yml)
196+
- name: Tag staging
197+
if: ${{ github.actor != 'OSBotify' }}
198+
run: |
199+
git checkout staging
200+
git pull origin staging
201+
git tag ${{ env.NEW_VERSION }}
202+
203+
# Note: we only run this action if the PR was manually CP'd. Otherwise, the deploy checklist is updated from preDeploy.yml
204+
- name: Update StagingDeployCash
205+
if: ${{ github.actor != 'OSBotify' }}
206+
uses: Expensify/App/.github/actions/createOrUpdateStagingDeploy@main
207+
with:
208+
GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }}
209+
NPM_VERSION: ${{ env.NEW_VERSION }}
210+
192211
- name: 'Announces a CP failure in the #announce Slack room'
193212
uses: 8398a7/action-slack@v3
194213
if: ${{ failure() }}

0 commit comments

Comments
 (0)