diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0024acdee9..1082cc2363 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,6 +77,7 @@ jobs: echo "::set-output name=name_lower::$NAME_LOWER" - name: Create GitHub deployment for ${{ matrix.name }} + if: ${{ github.event.inputs.release_type != 'Dry Run' }} uses: chrnorm/deployment-action@1b599fe41a0ef1f95191e7f2eec4743f2d7dfc48 id: deployment with: @@ -151,7 +152,7 @@ jobs: az webapp start -n $WEBAPP_NAME -g $RESOURCE_GROUP -s staging - name: Update ${{ matrix.name }} deployment status to Success - if: ${{ success() }} + if: ${{ github.event.inputs.release_type != 'Dry Run' && success() }} uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86 with: token: '${{ secrets.GITHUB_TOKEN }}' @@ -159,7 +160,7 @@ jobs: deployment-id: ${{ steps.deployment.outputs.deployment_id }} - name: Update ${{ matrix.name }} deployment status to Failure - if: ${{ failure() }} + if: ${{ github.event.inputs.release_type != 'Dry Run' && failure() }} uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86 with: token: '${{ secrets.GITHUB_TOKEN }}'