Skip to content

Commit 3dab627

Browse files
authored
CI: cancel previous runs for pull requests (#6437)
* CI: cancel previous runs * Revert "CI: cancel previous runs" This reverts commit 9faeca2. * support forked pull requests
1 parent df2ab78 commit 3dab627

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/cancel.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Cancel
2+
on:
3+
workflow_run:
4+
workflows: ["Ensure PR"]
5+
types:
6+
- requested
7+
jobs:
8+
cancel:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: styfle/cancel-workflow-action
12+
with:
13+
workflow_id: ${{ github.event.workflow.id }}

0 commit comments

Comments
 (0)