feat: add concurrency limits to all pipelines

sudoforge created

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

Change summary

.github/workflows/benchmark.yml       | 4 ++++
.github/workflows/codeql-analysis.yml | 4 ++++
.github/workflows/codespell.yml       | 4 ++++
.github/workflows/go.yml              | 4 ++++
.github/workflows/nodejs.yml          | 4 ++++
.github/workflows/release.yml         | 4 ++++
6 files changed, 24 insertions(+)

Detailed changes

.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

.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

.github/workflows/go.yml 🔗

@@ -7,6 +7,10 @@ on:
     branches: [ master ]
   workflow_dispatch:
 
+concurrency:
+  group: go-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   build:
 

.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

.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"