Browse Source

Changed Github deployments not to run on Dry Run. (#2406)

pull/2415/head
Todd Martin 3 years ago committed by GitHub
parent
commit
dd75642aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .github/workflows/release.yml

5
.github/workflows/release.yml

@ -77,6 +77,7 @@ jobs: @@ -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: @@ -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: @@ -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 }}'

Loading…
Cancel
Save