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

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new b393fa2c Configure GitHub workflows to use concurrency 
cancel-in-progress for (#3333)
b393fa2c is described below

commit b393fa2c9ed7318abf0792e333aab3a725514e1c
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Sun Jun 14 05:54:24 2026 +0200

    Configure GitHub workflows to use concurrency cancel-in-progress for (#3333)
    
    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]>
---
 .github/workflows/ci-linux.yml     | 4 ++++
 .github/workflows/ci-macos.yml     | 4 ++++
 .github/workflows/license-eyes.yml | 5 +++++
 3 files changed, 13 insertions(+)

diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml
index b0be2727..06c58721 100644
--- a/.github/workflows/ci-linux.yml
+++ b/.github/workflows/ci-linux.yml
@@ -13,6 +13,10 @@ on:
 env:
   proc_num: $(nproc)
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 # https://github.com/actions/runner-images
 jobs:
   compile-with-make:
diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml
index 61d45ac8..4631498d 100644
--- a/.github/workflows/ci-macos.yml
+++ b/.github/workflows/ci-macos.yml
@@ -13,6 +13,10 @@ on:
 env:
   proc_num: $(sysctl -n hw.logicalcpu)
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 jobs:
   compile-with-make-cmake-protobuf21:
     runs-on: macos-latest # https://github.com/actions/runner-images
diff --git a/.github/workflows/license-eyes.yml 
b/.github/workflows/license-eyes.yml
index 9ae09778..39699424 100644
--- a/.github/workflows/license-eyes.yml
+++ b/.github/workflows/license-eyes.yml
@@ -22,6 +22,11 @@ on:
   push:
     branches:
       - master
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 jobs:
   license-check:
     name: "License Check"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to