Skip to content

Cancel duplicate workflows #110

Cancel duplicate workflows

Cancel duplicate workflows #110

name: Cancel duplicate workflows
on:
workflow_run:
workflows: ["CI", "Daily cron", "Weekly cron", "Check PR change log"]
types:
- requested
# Note: This has to be in workflow_run so it works for PRs from forks.
jobs:
cancel:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d # 0.8.0
with:
workflow_id: ${{ github.event.workflow.id }}