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-core.git

commit a75bc4e54d59c2406ac23d73cb20b75b32150666
Author: Szymon Janc <[email protected]>
AuthorDate: Mon Oct 12 21:49:10 2026 +0200

    ci: Cancel superseded workflow runs for pull requests
    
    When pull request is updated, workflow runs started for previous
    version of it keep running until completed which wastes CI resources
    and delays results for latest version.
    
    Use pull request number as concurrency group so that in-progress runs
    are cancelled when pull request is updated. Runs for push events use
    commit SHA as group so they are never cancelled or serialized.
    
    Assisted-by: Claude:claude-opus-5-5
---
 .github/workflows/build_all_apps.yml      | 4 ++++
 .github/workflows/build_blinky.yml        | 4 ++++
 .github/workflows/build_bootloader.yml    | 4 ++++
 .github/workflows/build_cc_target.yml     | 4 ++++
 .github/workflows/build_mtest_apps.yml    | 4 ++++
 .github/workflows/build_targets.yml       | 4 ++++
 .github/workflows/check_compliance.yml    | 4 ++++
 .github/workflows/newt_test_all.yml       | 4 ++++
 .github/workflows/validate_bsp_folder.yml | 4 ++++
 9 files changed, 36 insertions(+)

diff --git a/.github/workflows/build_all_apps.yml 
b/.github/workflows/build_all_apps.yml
index 0c30dcff3..76237e4cb 100644
--- a/.github/workflows/build_all_apps.yml
+++ b/.github/workflows/build_all_apps.yml
@@ -25,6 +25,10 @@ on:
       - master
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/build_blinky.yml 
b/.github/workflows/build_blinky.yml
index 1ed7ee4d0..bfd3d0c11 100644
--- a/.github/workflows/build_blinky.yml
+++ b/.github/workflows/build_blinky.yml
@@ -25,6 +25,10 @@ on:
       - master
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/build_bootloader.yml 
b/.github/workflows/build_bootloader.yml
index 361e07fbd..2e448408e 100644
--- a/.github/workflows/build_bootloader.yml
+++ b/.github/workflows/build_bootloader.yml
@@ -25,6 +25,10 @@ on:
       - master
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/build_cc_target.yml 
b/.github/workflows/build_cc_target.yml
index 6dc86af18..4e20f3d72 100644
--- a/.github/workflows/build_cc_target.yml
+++ b/.github/workflows/build_cc_target.yml
@@ -25,6 +25,10 @@ on:
       - master
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/build_mtest_apps.yml 
b/.github/workflows/build_mtest_apps.yml
index 277d677d5..375462578 100644
--- a/.github/workflows/build_mtest_apps.yml
+++ b/.github/workflows/build_mtest_apps.yml
@@ -25,6 +25,10 @@ on:
       - master
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/build_targets.yml 
b/.github/workflows/build_targets.yml
index dc8e93064..59bf6aa9f 100644
--- a/.github/workflows/build_targets.yml
+++ b/.github/workflows/build_targets.yml
@@ -25,6 +25,10 @@ on:
       - master
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/check_compliance.yml 
b/.github/workflows/check_compliance.yml
index d91a0af7e..e49070ca0 100644
--- a/.github/workflows/check_compliance.yml
+++ b/.github/workflows/check_compliance.yml
@@ -23,6 +23,10 @@ on:
   pull_request:
     types: [opened, synchronize, reopened, labeled, unlabeled]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 permissions:
   contents: read
   issues: read
diff --git a/.github/workflows/newt_test_all.yml 
b/.github/workflows/newt_test_all.yml
index a8f874a8b..3e9264884 100644
--- a/.github/workflows/newt_test_all.yml
+++ b/.github/workflows/newt_test_all.yml
@@ -25,6 +25,10 @@ on:
       - master
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/validate_bsp_folder.yml 
b/.github/workflows/validate_bsp_folder.yml
index 59f668fc1..8ab6b2d3d 100644
--- a/.github/workflows/validate_bsp_folder.yml
+++ b/.github/workflows/validate_bsp_folder.yml
@@ -25,6 +25,10 @@ on:
       - master
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 permissions:
   contents: read
 

Reply via email to