From af320b2fe1546d00bae92b2f9fa96973831cf0c2 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Thu, 13 Jul 2023 12:19:38 -0400 Subject: [PATCH] Update logic of release-unified job (#135) --- .github/workflows/release.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acfb19b..d28ca7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,6 @@ jobs: outputs: _WEB_RELEASE_TAG: ${{ steps.set-tags.outputs.WEB_RELEASE_TAG }} _CORE_RELEASE_TAG: ${{ steps.set-tags.outputs.CORE_RELEASE_TAG }} - branch-name: ${{ steps.branch.outputs.branch-name }} steps: - name: Branch check if: ${{ github.event.inputs.release_type != 'Dry Run' }} @@ -64,12 +63,6 @@ jobs: echo "WEB_RELEASE_TAG=$WEB" >> $GITHUB_OUTPUT echo "CORE_RELEASE_TAG=$CORE" >> $GITHUB_OUTPUT - - name: Get branch name - id: branch - run: | - BRANCH_NAME=$(basename ${{ github.ref }}) - echo "branch-name=$BRANCH_NAME" >> $GITHUB_OUTPUT - release: name: Create GitHub Release runs-on: ubuntu-22.04 @@ -345,8 +338,8 @@ jobs: env: _RELEASE_VERSION: ${{ github.event.inputs.release_version }}-beta # TODO: remove `-beta` after GA steps: - - name: Get tag - id: get-tag + - name: Setup + id: setup env: RELEASE_VERSION: ${{ github.event.inputs.release_version }} run: | @@ -367,7 +360,7 @@ jobs: - name: Pull self-host image env: - _BRANCH_NAME: ${{ needs.setup.outputs.branch-name }} + _BRANCH_NAME: ${{ steps.setup.outputs.branch_name }} run: | if [[ "${{ github.event.inputs.release_type }}" == "Dry Run" ]]; then docker pull bitwarden/self-host:dev @@ -377,7 +370,7 @@ jobs: - name: Tag version and latest env: - _BRANCH_NAME: ${{ needs.setup.outputs.branch-name }} + _BRANCH_NAME: ${{ steps.setup.outputs.branch_name }} run: | if [[ "${{ github.event.inputs.release_type }}" == "Dry Run" ]]; then docker tag bitwarden/self-host:dev bitwarden/self-host:dryrun @@ -412,7 +405,7 @@ jobs: - name: Pull latest project image env: REGISTRY: bitwardenprod.azurecr.io - _BRANCH_NAME: ${{ needs.setup.outputs.branch-name }} + _BRANCH_NAME: ${{ steps.setup.outputs.branch_name }} run: | if [[ "${{ github.event.inputs.release_type }}" == "Dry Run" ]]; then docker pull $REGISTRY/self-host:dev @@ -423,7 +416,7 @@ jobs: - name: Tag version and latest env: REGISTRY: bitwardenprod.azurecr.io - _BRANCH_NAME: ${{ needs.setup.outputs.branch-name }} + _BRANCH_NAME: ${{ steps.setup.outputs.branch_name }} run: | if [[ "${{ github.event.inputs.release_type }}" == "Dry Run" ]]; then docker tag $REGISTRY/self-host:dev $REGISTRY/self-host:dryrun