This is an automated email from the ASF dual-hosted git repository.
funky-eyes pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git
The following commit(s) were added to refs/heads/2.x by this push:
new 2f3de1cad0 optimize: Configure GitHub workflows to use concurrency
cancel-in-progress for (#8135)
2f3de1cad0 is described below
commit 2f3de1cad03a81bd1145811d69ba7d097c3320dd
Author: Aurélien Pupier <[email protected]>
AuthorDate: Tue Jun 9 05:33:40 2026 +0200
optimize: Configure GitHub workflows to use concurrency cancel-in-progress
for (#8135)
---
.github/workflows/build.yml | 4 ++++
.github/workflows/codeql-analysis.yml | 4 ++++
.github/workflows/license-checker.yaml | 6 +++++-
.github/workflows/spotless-check.yml | 4 ++++
4 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3ab798ef01..2d0b874907 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -25,6 +25,10 @@ on:
paths-ignore:
- '**.md'
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
# job 1: Test based on java 8, 17, 21 and 25.
build:
diff --git a/.github/workflows/codeql-analysis.yml
b/.github/workflows/codeql-analysis.yml
index fa158c175a..d2856cae64 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -23,6 +23,10 @@ on:
schedule:
- cron: '36 19 * * 6'
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
analyze:
name: Analyze
diff --git a/.github/workflows/license-checker.yaml
b/.github/workflows/license-checker.yaml
index 75174e573c..7700d0b3d2 100644
--- a/.github/workflows/license-checker.yaml
+++ b/.github/workflows/license-checker.yaml
@@ -18,7 +18,11 @@ name: License checker
on:
pull_request:
- branches: [ 2.x, develop, master ]
+ branches: [ 2.x, develop, master ]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check-license:
diff --git a/.github/workflows/spotless-check.yml
b/.github/workflows/spotless-check.yml
index 41a3a5b842..38036a4a07 100644
--- a/.github/workflows/spotless-check.yml
+++ b/.github/workflows/spotless-check.yml
@@ -25,6 +25,10 @@ on:
paths-ignore:
- '**.md'
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
spotless:
runs-on: ubuntu-latest
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]