]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Add Action to Cancel previous Workflows, if newer has been added 190/head
authorEnrico Gruner <enrico.gruner@dev-creations.de>
Sat, 3 Oct 2020 11:34:57 +0000 (13:34 +0200)
committerEnrico Gruner <enrico.gruner@dev-creations.de>
Sat, 3 Oct 2020 11:34:57 +0000 (13:34 +0200)
.github/workflows/cancel.yml [new file with mode: 0644]

diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml
new file mode 100644 (file)
index 0000000..c3ae548
--- /dev/null
@@ -0,0 +1,14 @@
+name: Cancel
+on: [push]
+jobs:
+  cancel:
+    name: 'Cancel Previous Runs'
+    runs-on: ubuntu-latest
+    timeout-minutes: 3
+    steps:
+      - uses: styfle/cancel-workflow-action@0.5.0
+        with:
+          # Ids of other workflows that ought to be canceled
+          # Ids can be found here: https://api.github.com/repos/fennecdjay/Gwion/actions/workflows
+          workflow_id: 55357,55358,55359,356501,359430,575240,575243,575600,604136,612771,619820,1306635,2138185,2665681,2809967
+          access_token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file