Skip to content

Commit efc9651

Browse files
committed
ci: do not duplicate events
1 parent ba8052b commit efc9651

5 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/android.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- '**.md'
1111
- 'docs/**'
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
build:
1519
runs-on: ubuntu-latest

.github/workflows/book.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- master
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
deploy:
1115
runs-on: ubuntu-latest
@@ -30,4 +34,4 @@ jobs:
3034
with:
3135
github_token: ${{ secrets.GITHUB_TOKEN }}
3236
publish_dir: ./output
33-
37+

.github/workflows/build_cmake.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- '**.md'
1111
- 'docs/**'
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
build:
1519
name: ${{ matrix.config.name }}-${{ matrix.library_mode }}-${{ matrix.boost }}Boost

.github/workflows/build_python.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- '**.md'
1111
- 'docs/**'
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
build:
1519
name: ${{ matrix.config.name }}

.github/workflows/mingw.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- '**.md'
1111
- 'docs/**'
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
mingw:
1519
runs-on: windows-latest

0 commit comments

Comments
 (0)