From 856d806d362b81bbf5a692d15d31f0161467bbd1 Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Sat, 3 Oct 2020 12:39:37 -0700 Subject: [PATCH] Fix CI builds and add cancel workflow. --- .github/workflows/cancel.yml | 13 +++++++++++++ .github/workflows/ci.yml | 10 +--------- 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/cancel.yml diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml new file mode 100644 index 000000000..7f1076371 --- /dev/null +++ b/.github/workflows/cancel.yml @@ -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 }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f8f97139..e9c217501 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: -- 2.30.2