* [ci] try fixing cancel job when opening PR from fork * [ci] update main.yml generator * [ci] update styfle/cancel-workflow-action * [ci] try cancel
@@ -0,0 +1,14 @@
+name: Cancel
+on:
+ workflow_run:
+ workflows: ["CI"]
+ types:
+ - requested
+jobs:
+ cancel:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Cancel previous runs
+ uses: styfle/[email protected]
+ with:
+ workflow_id: ${{ github.event.workflow.id }}
@@ -5,16 +5,6 @@ name: CI
on: [push, pull_request]
jobs:
- cancel:
- name: "Cancel previous runs"
- runs-on: ubuntu-18.04
- timeout-minutes: 3
- steps:
- - uses: styfle/[email protected]
- with:
- workflow_id: 1447568
- access_token: ${{ github.token }}
-
windows64-build:
runs-on: windows-latest
env:
@@ -4,16 +4,6 @@ name: CI