Skip to content

Commit

Permalink
Merge pull request #5473 from Expensify/Rory-UpdateDeployChecklistWit…
Browse files Browse the repository at this point in the history
…hManualCP

(cherry picked from commit b4c69f2)
  • Loading branch information
roryabraham authored and roryabraham committed Sep 27, 2021
1 parent 8ed4153 commit 9ace777
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cherryPick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,25 @@ jobs:
GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }}
PULL_REQUEST: ${{ steps.createPullRequest.outputs.pr_number }}

# Create a local git tag on staging so that GitUtils.getPullRequestsMergedBetween can use `git log` to generate a
# list of pull requests that were merged between this version tag and another.
# NOTE: This tag is only used locally and shouldn't be pushed to the remote.
# If it was pushed, that would trigger the staging deploy which is handled in a separate workflow (deploy.yml)
- name: Tag staging
if: ${{ github.actor != 'OSBotify' }}
run: |
git checkout staging
git pull origin staging
git tag ${{ env.NEW_VERSION }}
# Note: we only run this action if the PR was manually CP'd. Otherwise, the deploy checklist is updated from preDeploy.yml
- name: Update StagingDeployCash
if: ${{ github.actor != 'OSBotify' }}
uses: Expensify/App/.github/actions/createOrUpdateStagingDeploy@main
with:
GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }}
NPM_VERSION: ${{ env.NEW_VERSION }}

- name: 'Announces a CP failure in the #announce Slack room'
uses: 8398a7/action-slack@v3
if: ${{ failure() }}
Expand Down

0 comments on commit 9ace777

Please sign in to comment.