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 1292ee8d2ac8265b2f608586f001b8c2fe601a98
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Oct 14 00:51:35 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 and schedule
    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_cc_target.yml  | 4 ++++
 .github/workflows/build_ports.yml      | 4 ++++
 .github/workflows/build_targets.yml    | 4 ++++
 .github/workflows/codeql.yml           | 4 ++++
 .github/workflows/compliance_check.yml | 4 ++++
 .github/workflows/newt_test_all.yml    | 4 ++++
 7 files changed, 28 insertions(+)

diff --git a/.github/workflows/build_all_apps.yml 
b/.github/workflows/build_all_apps.yml
index 6afd163c9..4bdfbeaaa 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
+
 jobs:
   targets:
     name: Build all apps
diff --git a/.github/workflows/build_cc_target.yml 
b/.github/workflows/build_cc_target.yml
index 72e47def4..e45c759be 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
+
 jobs:
   targets:
     name: Build GCC test target
diff --git a/.github/workflows/build_ports.yml 
b/.github/workflows/build_ports.yml
index e0bf5c5e5..513978395 100644
--- a/.github/workflows/build_ports.yml
+++ b/.github/workflows/build_ports.yml
@@ -25,6 +25,10 @@ on:
       - master
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 jobs:
   ports:
     name: Build ports
diff --git a/.github/workflows/build_targets.yml 
b/.github/workflows/build_targets.yml
index 01e176539..dab86989e 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
+
 jobs:
   targets:
     name: Build all test targets
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 9c5c92709..563cb4023 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -19,6 +19,10 @@ on:
   pull_request:
     branches: '*'
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.sha }}
+  cancel-in-progress: true
+
 jobs:
   analyze:
     name: Analyze
diff --git a/.github/workflows/compliance_check.yml 
b/.github/workflows/compliance_check.yml
index 23fdfdfbc..7e051ae2a 100644
--- a/.github/workflows/compliance_check.yml
+++ b/.github/workflows/compliance_check.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
+
 jobs:
   style_check:
     name: Coding style
diff --git a/.github/workflows/newt_test_all.yml 
b/.github/workflows/newt_test_all.yml
index faa590df2..47d5f3c84 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
+
 jobs:
   newt_test:
     name: Run newt test all

Reply via email to