From 6bea3ccc3002f6ae7254122be38d98fb27332de9 Mon Sep 17 00:00:00 2001 From: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> Date: Fri, 22 Oct 2021 08:41:23 -0700 Subject: [PATCH] Updating release branch constraint (#392) * Updating release branch constraint and CI pipeline code constraint * removing the master branch release ci code execution * updating some verbiage --- .github/workflows/release.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f09269d91..0d810f373f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,9 @@ jobs: steps: - name: Branch check run: | - if [[ "$GITHUB_REF" != "refs/heads/rc" ]]; then + if [[ "$GITHUB_REF" != "refs/heads/release" ]]; then echo "===================================" - echo "[!] Can only release from rc branch" + echo "[!] Can only release from the 'release' branch" echo "===================================" exit 1 fi @@ -23,7 +23,7 @@ jobs: - name: Checkout repo uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # 2.3.4 with: - ref: rc + ref: release - name: Retrieve CLI release version id: retrieve-version @@ -51,7 +51,7 @@ jobs: with: workflow: build.yml workflow_conclusion: success - branch: rc + branch: release - name: Create release uses: ncipollo/release-action@95215a3cb6e6a1908b3c44e00b4fdb15548b1e09 # v2.8.5 @@ -85,7 +85,7 @@ jobs: - name: Checkout repo uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 with: - ref: 'rc' + ref: release - name: Install Snapcraft uses: samuelmeuli/action-snapcraft@10d7d0a84d9d86098b19f872257df314b0bd8e2d # v1.2.0 @@ -97,7 +97,7 @@ jobs: with: workflow: build.yml workflow_conclusion: success - branch: rc + branch: release artifacts: bw_${{ env._PKG_VERSION }}_amd64.snap - name: Test @@ -119,7 +119,7 @@ jobs: - name: Checkout repo uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 with: - ref: 'rc' + ref: release - name: Setup Chocolatey run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/ @@ -131,7 +131,7 @@ jobs: with: workflow: build.yml workflow_conclusion: success - branch: rc + branch: release artifacts: bitwarden-cli.${{ env._PKG_VERSION }}.nupkg - name: Push to Chocolatey @@ -147,14 +147,14 @@ jobs: - name: Checkout repo uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 with: - ref: 'rc' + ref: release - name: Download artifacts uses: bitwarden/gh-actions/download-artifacts@23433be15ed6fd046ce12b6889c5184a8d9c8783 with: workflow: build.yml workflow_conclusion: success - branch: rc + branch: release artifacts: bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip - name: Setup NPM