Don't update the deployment if we didn't start it (#4995)

This commit is contained in:
Marco Ferrari 2023-12-19 11:10:53 +01:00 committed by GitHub
parent 088bfe8e7e
commit 2d303aab53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,7 +128,11 @@ jobs:
- name: Update ${{ matrix.images.environment }} Deployment - name: Update ${{ matrix.images.environment }} Deployment
uses: bobheadxi/deployments@v1.4.0 uses: bobheadxi/deployments@v1.4.0
if: always() # We depend on the 'deployment' step outputs, so we can't run this step
# if the 'deployment' step didn't run. This can happen if any step
# before the 'deployment' step fails. That's why 'always()' is not
# suitable here.
if: steps.deployment.conclusion != 'cancelled' && steps.deployment.conclusion != 'skipped'
with: with:
step: finish step: finish
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}