Skip to content

Commit

Permalink
Don't update the deployment if we didn't start it (#4995)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Dec 19, 2023
1 parent 088bfe8 commit 2d303aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ jobs:

- name: Update ${{ matrix.images.environment }} Deployment
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:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2d303aa

Please sign in to comment.