Cancel #1490
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cancel | |
env: | |
# Force the stdout and stderr streams to be unbuffered | |
PYTHONUNBUFFERED: 1 | |
on: # yamllint disable-line rule:truthy | |
workflow_run: | |
workflows: ["PullRequestCI", "ReleaseBranchCI", "DocsCheck", "BackportPR"] | |
types: | |
- requested | |
jobs: | |
cancel: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: styfle/[email protected] | |
with: | |
all_but_latest: true | |
workflow_id: ${{ github.event.workflow.id }} |