aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsudoforge <no-reply@sudoforge.com>2024-07-18 21:49:33 -0700
committersudoforge <9c001b67637a@sudoforge.com>2024-07-20 07:44:23 -0700
commita4b8858668d44203f31e1d9cd675b02600d0ea3f (patch)
tree69de399103211230a260b1f9423e3d42af8d5634
parentf79ea38c8f5ef0f201e3f824b818247777fedc0a (diff)
downloadgit-bug-a4b8858668d44203f31e1d9cd675b02600d0ea3f.tar.gz
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
-rw-r--r--.github/workflows/benchmark.yml4
-rw-r--r--.github/workflows/codeql-analysis.yml4
-rw-r--r--.github/workflows/codespell.yml4
-rw-r--r--.github/workflows/go.yml4
-rw-r--r--.github/workflows/nodejs.yml4
-rw-r--r--.github/workflows/release.yml4
6 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 4c0e0cf1..8e768a7a 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -5,6 +5,10 @@ on:
branches:
- master
+concurrency:
+ group: benchmark-${{ github.ref }}
+ cancel-in-progress: true
+
permissions:
# deployments permission to deploy GitHub pages website
deployments: write
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 308312c6..498403ec 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -9,6 +9,10 @@ on:
schedule:
- cron: '0 12 * * 6'
+concurrency:
+ group: codeql-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
CodeQL-Build:
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
index 5768d7c6..7b9a63ce 100644
--- a/.github/workflows/codespell.yml
+++ b/.github/workflows/codespell.yml
@@ -7,6 +7,10 @@ on:
pull_request:
branches: [master]
+concurrency:
+ group: codespell-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
codespell:
name: Check for spelling errors
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 7ec99351..2940c743 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -7,6 +7,10 @@ on:
branches: [ master ]
workflow_dispatch:
+concurrency:
+ group: go-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
build:
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
index fffff896..7e37f0ab 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/nodejs.yml
@@ -7,6 +7,10 @@ on:
branches: [ master ]
workflow_dispatch:
+concurrency:
+ group: nodejs-${{ github.ref }}
+ cancel-in-progress: true
+
defaults:
run:
working-directory: webui
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index aa5fbcc2..24b0fef9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -6,6 +6,10 @@ on:
tags:
- "v*"
+concurrency:
+ group: release-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
build-release:
runs-on: "ubuntu-latest"