2021-10-22 09:35:09 +00:00
|
|
|
name: Cancel
|
2021-12-15 19:47:08 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
# Force the stdout and stderr streams to be unbuffered
|
|
|
|
PYTHONUNBUFFERED: 1
|
|
|
|
|
2021-10-22 09:35:09 +00:00
|
|
|
on: # yamllint disable-line rule:truthy
|
|
|
|
workflow_run:
|
2022-11-01 13:26:06 +00:00
|
|
|
workflows: ["PullRequestCI", "ReleaseBranchCI", "DocsCheck", "BackportPR"]
|
2021-10-22 09:35:09 +00:00
|
|
|
types:
|
|
|
|
- requested
|
|
|
|
jobs:
|
|
|
|
cancel:
|
|
|
|
runs-on: [self-hosted, style-checker]
|
|
|
|
steps:
|
2021-10-22 09:42:45 +00:00
|
|
|
- uses: styfle/cancel-workflow-action@0.9.1
|
|
|
|
with:
|
2021-12-01 12:38:17 +00:00
|
|
|
all_but_latest: true
|
2021-10-22 09:42:45 +00:00
|
|
|
workflow_id: ${{ github.event.workflow.id }}
|