This is an automated email from the ASF dual-hosted git repository.
lizhimins pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new be38a8211b Configure GitHub workflows to use concurrency
cancel-in-progress for (#10445)
be38a8211b is described below
commit be38a8211b767e04a7a53aeea3b014a91c8478be
Author: Aurélien Pupier <[email protected]>
AuthorDate: Thu Jun 11 04:53:22 2026 +0200
Configure GitHub workflows to use concurrency cancel-in-progress for
(#10445)
See recommended best practices at Apache
https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=GitHub+Actions+Recommended+Practices
Signed-off-by: Aurélien Pupier <[email protected]>
---
.github/workflows/bazel.yml | 4 ++++
.github/workflows/codeql_analysis.yml | 4 ++++
.github/workflows/coverage.yml | 5 +++++
.github/workflows/integration-test.yml | 4 ++++
.github/workflows/license-checker.yaml | 4 ++++
.github/workflows/maven.yaml | 4 ++++
.github/workflows/misspell_check.yml | 5 +++++
7 files changed, 30 insertions(+)
diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml
index 4fd8742411..666512017e 100644
--- a/.github/workflows/bazel.yml
+++ b/.github/workflows/bazel.yml
@@ -8,6 +8,10 @@ on:
- develop
- bazel
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
name: "bazel-compile (${{ matrix.os }})"
diff --git a/.github/workflows/codeql_analysis.yml
b/.github/workflows/codeql_analysis.yml
index e5e8d323a2..fb6ea62a0f 100644
--- a/.github/workflows/codeql_analysis.yml
+++ b/.github/workflows/codeql_analysis.yml
@@ -7,6 +7,10 @@ on:
branches:
- master
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index b249072f8d..28d874a354 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -4,6 +4,11 @@ on:
types: [opened, reopened, synchronize]
push:
branches: [master, develop]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
calculate-coverage:
runs-on: ubuntu-latest
diff --git a/.github/workflows/integration-test.yml
b/.github/workflows/integration-test.yml
index ad5bcbd6c2..6a28111d0b 100644
--- a/.github/workflows/integration-test.yml
+++ b/.github/workflows/integration-test.yml
@@ -5,6 +5,10 @@ on:
push:
branches: [master, develop]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
it-test:
name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
diff --git a/.github/workflows/license-checker.yaml
b/.github/workflows/license-checker.yaml
index 259fdd7ffa..781d0e1a26 100644
--- a/.github/workflows/license-checker.yaml
+++ b/.github/workflows/license-checker.yaml
@@ -22,6 +22,10 @@ on:
- develop
- master
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
check-license:
runs-on: ubuntu-latest
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
index aaf165420c..15584e2cd1 100644
--- a/.github/workflows/maven.yaml
+++ b/.github/workflows/maven.yaml
@@ -5,6 +5,10 @@ on:
push:
branches: [master, develop, bazel]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
java_build:
name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
diff --git a/.github/workflows/misspell_check.yml
b/.github/workflows/misspell_check.yml
index 81729e42a4..aca1b04888 100644
--- a/.github/workflows/misspell_check.yml
+++ b/.github/workflows/misspell_check.yml
@@ -4,6 +4,11 @@ on:
types: [opened, reopened, synchronize]
push:
branches: [master, develop]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
misspell-check:
runs-on: ubuntu-latest