From 21f96af441e441228d1ce11b090a8e28d0deb27b Mon Sep 17 00:00:00 2001 From: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> Date: Wed, 9 Mar 2022 12:46:13 -0800 Subject: [PATCH] Update hotfix release branch name to hotfix-rc (#1396) (cherry picked from commit f845bcf6c14e83f4960b7282777687cd020fcb35) --- .github/workflows/build.yml | 8 ++++---- .github/workflows/release.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a6b4f2d..79388f11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,8 +57,8 @@ jobs: run: | SAFARI_REF=master - if [[ "$GITHUB_REF" == "refs/heads/hotfix" ]]; then - SAFARI_REF=hotfix + if [[ "$GITHUB_REF" == "refs/heads/hotfix-rc" ]]; then + SAFARI_REF=hotfix-rc elif [[ "$GITHUB_REF" == "refs/heads/rc" ]]; then SAFARI_REF=rc fi @@ -75,7 +75,7 @@ jobs: echo "::set-output name=rc_branch_exists::0" fi - if [[ $(git ls-remote --heads origin hotfix) ]]; then + if [[ $(git ls-remote --heads origin hotfix-rc) ]]; then echo "::set-output name=hotfix_branch_exists::1" else echo "::set-output name=hotfix_branch_exists::0" @@ -877,7 +877,7 @@ jobs: && needs.setup.outputs.rc_branch_exists == 0 && needs.setup.outputs.hotfix_branch_exists == 0) || (github.ref == 'refs/heads/rc' && needs.setup.outputs.hotfix_branch_exists == 0) - || github.ref == 'refs/heads/hotfix' + || github.ref == 'refs/heads/hotfix-rc' run: npm run upload:mas diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ff8022c..7e978b16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,9 +25,9 @@ jobs: - name: Branch check if: ${{ github.event.inputs.release_type != 'Dry Run' }} run: | - if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix" ]]; then + if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix-rc" ]]; then echo "===================================" - echo "[!] Can only release from the 'rc' or 'hotfix' branches" + echo "[!] Can only release from the 'rc' or 'hotfix-rc' branches" echo "===================================" exit 1 fi