This is an automated email from the ASF dual-hosted git repository.

EarthChen pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new 866860d013 Configure GitHub workflows to use concurrency 
cancel-in-progress for pull requests (#16323)
866860d013 is described below

commit 866860d01395870ce010606f14326c963e040f56
Author: Aurélien Pupier <[email protected]>
AuthorDate: Mon Jun 15 09:02:36 2026 +0200

    Configure GitHub workflows to use concurrency cancel-in-progress for pull 
requests (#16323)
    
    * Configure GitHub workflows to use concurrency cancel-in-progress for
    pull requests
    
    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]>
    
    * Enhance build-and-test workflow with concurrency
    
    Add concurrency settings for pull request workflows.
    
    ---------
    
    Signed-off-by: Aurélien Pupier <[email protected]>
    Co-authored-by: zrlw <[email protected]>
---
 .github/workflows/build-and-test-pr.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/build-and-test-pr.yml 
b/.github/workflows/build-and-test-pr.yml
index 294ad4e0c6..36d8e9a542 100644
--- a/.github/workflows/build-and-test-pr.yml
+++ b/.github/workflows/build-and-test-pr.yml
@@ -32,6 +32,12 @@ env:
     --no-transfer-progress
     --fail-fast
 
+concurrency:
+  # One group per PR, or per ref for branch pushes.
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  # Cancel in-progress runs for PRs only, so release branch builds always 
complete.
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 jobs:
   check-format:
     name: "Check if code needs formatting"

Reply via email to