From a4b8858668d44203f31e1d9cd675b02600d0ea3f Mon Sep 17 00:00:00 2001 From: sudoforge Date: Thu, 18 Jul 2024 21:49:33 -0700 Subject: [PATCH] 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 --- .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(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 4c0e0cf120cdd3b684305d101c78f3daf91989c4..8e768a7a0eb66f1fb2be71d3abf81659b0475b62 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 308312c6c6b019babf8a2afb8fb13a2658f4e7d5..498403ecff534559ff658a3c1abcb2782b2618af 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 5768d7c63672e68e60791ca6828d50d76be35e61..7b9a63ce6813516aba1063af89b24b48b36cf809 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 7ec99351e092811a90dad9e0f13267ff2f19371c..2940c74355cf86536b883d8af550c372137b18eb 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 fffff8962db53e65567639c35c0b74236f801389..7e37f0abd8d2c2cf1ae97ace49165f16a974f67a 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 aa5fbcc2361a51b982ce735efbf5acd430c650d9..24b0fef963bc89c9c3d009f4f3923922f396b6b2 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"