From 31ca27fa0345a134e306f8d4c348e27b971a2e31 Mon Sep 17 00:00:00 2001 From: Mike Diarmid Date: Wed, 3 Jun 2020 12:57:43 +0100 Subject: [PATCH] ci: update cancellation worklfow --- .github/workflows/cancel.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cancel.yaml b/.github/workflows/cancel.yaml index 819399a6..fed6304a 100644 --- a/.github/workflows/cancel.yaml +++ b/.github/workflows/cancel.yaml @@ -1,12 +1,19 @@ -name: cancel_previous -on: [push] +name: Cancel Previous Jobs +on: + pull_request: + branches: + - '**' + push: + branches: + - '**' jobs: cancel: - name: "Cancel Previous Runs" + name: "Cancel" runs-on: ubuntu-latest timeout-minutes: 3 steps: - uses: styfle/cancel-workflow-action@0.3.1 + continue-on-error: true with: workflow_id: 148944,1024868,1029491,1051247,1099495 access_token: ${{ github.token }}