Skip to content

Commit 0726817

Browse files
committed
Add concurrency cancellation to GHA workflows.
1 parent a509c16 commit 0726817

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/cppcmake.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ on:
1919
required: false
2020
default: ''
2121

22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
24+
cancel-in-progress: true
25+
2226
defaults:
2327
run:
2428
shell: bash
2529

26-
2730
jobs:
2831
build:
2932
name: ${{ matrix.config.name }}

.github/workflows/mingw_static.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- '.github/workflows/mingw_static.yml'
1111
pull_request:
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
build:
1519
name: MinGW batteries-included

0 commit comments

Comments
 (0)