Skip to content

Commit a4b8858

Browse files
committed
feat: add concurrency limits to all pipelines
This change restricts the number of active pipeline executions for a given tree to one, so that new pushes to a tree that trigger a pipeline will cancel older (but still running) pipelines. Change-Id: I1deda682d39cadbce97f8df4ca7c3110a96b4549
1 parent f79ea38 commit a4b8858

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
group: benchmark-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
permissions:
913
# deployments permission to deploy GitHub pages website
1014
deployments: write

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
schedule:
1010
- cron: '0 12 * * 6'
1111

12+
concurrency:
13+
group: codeql-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
CodeQL-Build:
1418

.github/workflows/codespell.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
branches: [master]
99

10+
concurrency:
11+
group: codespell-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
codespell:
1216
name: Check for spelling errors

.github/workflows/go.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: [ master ]
88
workflow_dispatch:
99

10+
concurrency:
11+
group: go-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
build:
1216

.github/workflows/nodejs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: [ master ]
88
workflow_dispatch:
99

10+
concurrency:
11+
group: nodejs-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
defaults:
1115
run:
1216
working-directory: webui

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
tags:
77
- "v*"
88

9+
concurrency:
10+
group: release-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
build-release:
1115
runs-on: "ubuntu-latest"

0 commit comments

Comments
 (0)