Skip to content

Commit d4ec791

Browse files
committed
ci: auto cancel previous jobs when new commit pushed for github workflow
Signed-off-by: Huaqi Fang <[email protected]>
1 parent 97daa89 commit d4ec791

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/doc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
name: Documentation
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
# Controls when the action will run. Triggers the workflow on push or pull request
610
# events but only for the master branch
711
on:

0 commit comments

Comments
 (0)