Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Cancel deployment job when cancelled (#2806)

Koen82fdb3a402bd
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 6f4b37e21..53aed6955 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -52,7 +52,7 @@ jobs:
deployment:
name: Deployment
needs: install-dist
- if: always()
+ if: always() && !cancelled() && (needs.install-dist.result == 'success' || needs.install-dist.result == 'skipped')
uses: "./.github/workflows/deployment.yml"
with:
INPUTS: ${{ toJSON(inputs) }}