Skip to content

Commit

Permalink
Skip deploy job if workflow was cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Feb 23, 2025
1 parent 5a8bfeb commit fa428c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/interactive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:

deploy:
needs: [stage-1, stage-2, stage-3]
if: success() && vars.DEPLOY_URL
if: ${{ !cancelled() && vars.DEPLOY_URL }}
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

deploy:
needs: build
if: always() && vars.DEPLOY_URL
if: ${{ !cancelled() && vars.DEPLOY_URL }}
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit fa428c1

Please sign in to comment.