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

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 5853d57d2a2c6f4b20924157dc847fb7f4f44933
Author: Szymon Janc <[email protected]>
AuthorDate: Fri Oct 16 16:37:55 2026 +0200

    ci: Cancel superseded build runs on master
    
    Runs for pushes to master used commit SHA as concurrency group, so
    when several commits were merged in short time, runs for all of them
    were building in parallel until completed. This wastes CI resources
    and makes those runs save caches in parallel.
    
    Use branch as concurrency group for push events, so that new push to
    master cancels in-progress run, same as is done for pull requests.
    
    Assisted-by: Claude:claude-opus-5-5
---
 .github/workflows/build.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7f8ea709f..479aaf5fb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -25,8 +25,9 @@ on:
       - master
   pull_request:
 
+# New push to master or pull request cancels its in-progress run
 concurrency:
-  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
   cancel-in-progress: true
 
 permissions:

Reply via email to