Fix CI builds and add cancel workflow.
authorMathias Preiner <mathias.preiner@gmail.com>
Sat, 3 Oct 2020 19:39:37 +0000 (12:39 -0700)
committerMathias Preiner <mathias.preiner@gmail.com>
Sat, 3 Oct 2020 19:39:37 +0000 (12:39 -0700)
.github/workflows/cancel.yml [new file with mode: 0644]
.github/workflows/ci.yml

diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml
new file mode 100644 (file)
index 0000000..7f10763
--- /dev/null
@@ -0,0 +1,13 @@
+on: [push, pull_request_target]
+name: Cancel
+
+jobs:
+  cancel:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Cancel Previous Runs
+        uses: styfle/cancel-workflow-action@0.5.0
+        with:
+          # cancel builds from ci workflow
+          workflow_id: 903674
+          access_token: ${{ github.token }}
index 8f8f9713966e8b29ee975d2dab57f8d0cca37ae0..e9c217501331b190dad158c913d7a9d35cc2e1fa 100644 (file)
@@ -1,15 +1,7 @@
-on: [push, pull_request_target]
+on: [push, pull_request]
 name: CI
 
 jobs:
-  cancel:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Cancel Previous Runs
-        uses: styfle/cancel-workflow-action@0.5.0
-        with:
-          access_token: ${{ github.token }}
-
   build:
     strategy:
       matrix: