Skip to content

Commit 2212872

Browse files
committed
ci: stop previous workflow on new push
1 parent 23d0f20 commit 2212872

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: 'Build'
2+
23
on:
34
pull_request:
45
push:
@@ -8,6 +9,10 @@ on:
89
branches:
910
- master
1011

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1116
jobs:
1217
dist:
1318
runs-on: [ubuntu-latest]

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: 'CI'
2+
23
on:
34
pull_request:
45
push:
@@ -8,6 +9,10 @@ on:
89
branches:
910
- master
1011

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1116
jobs:
1217
build:
1318
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)