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 40ecc79f24a12d7a76a2e7c99926806ead81337b Author: Szymon Janc <[email protected]> AuthorDate: Thu Oct 15 18:52:01 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. Bootloader (main) workflow, which also runs on every push to master, gets same concurrency setting. Assisted-by: Claude:claude-opus-5-5 --- .github/workflows/build.yml | 3 ++- .github/workflows/build_bootloader_main.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2c7da3b3..de5673690 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: diff --git a/.github/workflows/build_bootloader_main.yml b/.github/workflows/build_bootloader_main.yml index bbe9b6c3e..eaab17cc4 100644 --- a/.github/workflows/build_bootloader_main.yml +++ b/.github/workflows/build_bootloader_main.yml @@ -26,6 +26,10 @@ on: schedule: - cron: 42 0 * * * +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + permissions: contents: read
