From b4313acc0f6709e24561be01fcb2f39be480a357 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Thu, 09 Jul 2026 08:06:34 +0000
Subject: [PATCH] Add concurrency groups to GitHub Actions workflows (#721)
---
.github/workflows/deploy.yml | 19 +++++++++++++++++++
.github/workflows/release.yml | 19 +++++++++++++++++++
.github/workflows/build.yml | 4 ++++
.github/workflows/benchmark.yml | 2 +-
4 files changed, 43 insertions(+), 1 deletions(-)
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 4a27339..402fb34 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -49,7 +49,7 @@
contents: read
concurrency:
- group: benchmark-${{ github.ref }}
+ group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8b1a33b..994d0eb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -19,6 +19,10 @@
branches: [ 'sustaining/4.10.x','master', 'issues/**', 'features/**' ]
pull_request:
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
build-maven:
runs-on: ${{ matrix.os }}
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 8b56d45..c065292 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -1,3 +1,17 @@
+# The contents of this file are subject to the terms of the Common Development and
+# Distribution License (the License). You may not use this file except in compliance with the
+# License.
+#
+# You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
+# specific language governing permission and limitations under the License.
+#
+# When distributing Covered Software, include this CDDL Header Notice in each file and include
+# the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
+# Header, with the fields enclosed by brackets [] replaced by your own identifying
+# information: "Portions copyright [year] [name of copyright owner]".
+#
+# Copyright 2021-2026 3A Systems, LLC.
+
name: Package/Deploy
on:
@@ -5,6 +19,11 @@
branches: [ 'sustaining/4.10.x','master' ]
workflows: ["Build","Release"]
types: [completed]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
+ cancel-in-progress: false
+
jobs:
package-deploy-maven:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event=='push'}}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1309c07..48d3cfb 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,3 +1,17 @@
+# The contents of this file are subject to the terms of the Common Development and
+# Distribution License (the License). You may not use this file except in compliance with the
+# License.
+#
+# You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
+# specific language governing permission and limitations under the License.
+#
+# When distributing Covered Software, include this CDDL Header Notice in each file and include
+# the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
+# Header, with the fields enclosed by brackets [] replaced by your own identifying
+# information: "Portions copyright [year] [name of copyright owner]".
+#
+# Copyright 2022-2026 3A Systems, LLC.
+
name: Release
on:
@@ -11,6 +25,11 @@
description: "Default version to use for new local working copy."
required: true
default: "X.Y.Z-SNAPSHOT"
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: false
+
jobs:
release-maven:
runs-on: 'ubuntu-latest'
--
Gitblit v1.10.0