Skip to content

Commit ecb1541

Browse files
committed
ci: cancel github action on branch update
1 parent 0f6637e commit ecb1541

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/unit-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches:
99
- main
1010

11+
# cancel in-progress runs on new commits to same PR (gitub.event.number)
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
14+
cancel-in-progress: true
15+
1116
jobs:
1217
unit-test:
1318
uses: sxzz/workflows/.github/workflows/unit-test.yml@v1

0 commit comments

Comments
 (0)