Skip to content

Cancel Workflows #102197

Cancel Workflows

Cancel Workflows #102197

name: Cancel Workflows
on:
workflow_run:
workflows: ["Go", "Golicense", "Kind", "Build and push latest image if needed", "Antrea upgrade"]
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.1
with:
all_but_latest: true
workflow_id: ${{ github.event.workflow.id }}