From 0b80d5bc91eca44ac3720e85e0ba51610c3ce7b2 Mon Sep 17 00:00:00 2001 From: Sairamreddy Bojja Date: Mon, 7 Sep 2026 11:32:35 +0530 Subject: [PATCH] ci: cancel in-progress runs on new PR push MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a concurrency group to pre_merge_build so that pushing a new commit to a PR automatically cancels the still-running job from the previous commit on the same PR. post_merge_build is intentionally left without concurrency — every push to master is a distinct merged result and should be recorded. Signed-off-by: Sairamreddy Bojja --- .github/workflows/pre_merge_build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pre_merge_build.yml b/.github/workflows/pre_merge_build.yml index e90ba53..73bd2e3 100644 --- a/.github/workflows/pre_merge_build.yml +++ b/.github/workflows/pre_merge_build.yml @@ -16,6 +16,10 @@ on: paths-ignore: - '.github/**' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: load_parameters: uses: ./.github/workflows/loading.yml