Skip to content

Commit 41e6f64

Browse files
authored
Cancel concurrent builds (#371)
1 parent abea9fa commit 41e6f64

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
- 'LICENSE.md'
1313
- 'README.md'
1414
- '.github/workflows/TagBot.yml'
15+
16+
concurrency:
17+
group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }}
18+
cancel-in-progress: true
19+
1520
jobs:
1621
pre_job:
1722
# continue-on-error: true # Uncomment once integration is finished

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
- 'README.md'
1515
- '.github/workflows/TagBot.yml'
1616

17+
concurrency:
18+
group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
build:
1923
permissions:

.github/workflows/downstream.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- 'README.md'
1010
- '.github/workflows/TagBot.yml'
1111

12+
concurrency:
13+
group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
pre_job:
1418
# continue-on-error: true # Uncomment once integration is finished

0 commit comments

Comments
 (0)