[SKIP CI] Attempt to cancel old PR workflows

This commit is contained in:
arkon
2021-02-28 11:19:45 -05:00
parent ea029e2b3c
commit e8d6cdecaa
4 changed files with 18 additions and 3 deletions

View File

@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.5.0
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}

View File

@ -0,0 +1,15 @@
name: Cancel old pull request workflows
on:
workflow_run:
workflows: ["PR build check"]
types:
- requested
jobs:
cancel:
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.8.0
with:
workflow_id: ${{ github.event.workflow.id }}