diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3352da77c7..be5ce2d715 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,6 +76,7 @@ jobs: echo "::set-output name=name_lower::$NAME_LOWER" - name: Download latest Release ${{ matrix.name }} asset + if: ${{ github.event.inputs.release_type != 'Dry Run' }} uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8 with: workflow: build.yml @@ -83,6 +84,15 @@ jobs: branch: ${{ needs.setup.outputs.branch-name }} artifacts: ${{ matrix.name }}.zip + - name: Download latest Release ${{ matrix.name }} asset + if: ${{ github.event.inputs.release_type == 'Dry Run' }} + uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8 + with: + workflow: build.yml + workflow_conclusion: success + branch: master + artifacts: ${{ matrix.name }}.zip + - name: Login to Azure uses: Azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf with: @@ -117,6 +127,7 @@ jobs: slot-name: "staging" - name: Start staging slot + if: ${{ github.event.inputs.release_type != 'Dry Run' }} env: SERVICE: ${{ matrix.name }} WEBAPP_NAME: ${{ steps.retrieve-secrets.outputs.webapp-name }} @@ -258,6 +269,7 @@ jobs: - deploy steps: - name: Download latest Release docker-stub + if: ${{ github.event.inputs.release_type != 'Dry Run' }} uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8 with: workflow: build.yml @@ -266,6 +278,17 @@ jobs: artifacts: "docker-stub.zip, docker-stub-sha256.txt, swagger.json" + + - name: Download latest Release docker-stub + if: ${{ github.event.inputs.release_type == 'Dry Run' }} + uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8 + with: + workflow: build.yml + workflow_conclusion: success + branch: master + artifacts: "docker-stub.zip, + docker-stub-sha256.txt, + swagger.json" - name: Create release if: ${{ github.event.inputs.release_type != 'Dry Run' }}