Cancel Workflows #9314
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 Workflows | |
on: | |
workflow_run: | |
workflows: ["Go", "Golicense", "Kind"] | |
types: | |
- requested | |
jobs: | |
cancel: | |
name: Cancel workflows | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.event == 'pull_request' }} | |
steps: | |
- uses: styfle/cancel-workflow-action@0.12.0 | |
with: | |
all_but_latest: true | |
workflow_id: ${{ github.event.workflow.id }} |