From 6276e0953073bf5db53530ce8c49014593ec499c Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 7 Jun 2025 19:36:24 +0200 Subject: [PATCH] workflows/backport: cancel concurrent runs When backporting a change to 24.11 and 25.05 at the same time by adding the two labels immediately *after* merging the PR, three backport jobs will run concurrently: One for the merge and one for each label added. Each of those jobs will try to create both PRs, which will lead to two of the jobs failing for sure. With a concurrency group and cancelling in-progress jobs, only one of those jobs will remain. This reduces notification noise. --- .github/workflows/backport.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index ea184fb914a44..117dbc09b2ee3 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -9,6 +9,10 @@ on: pull_request_target: types: [closed, labeled] +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + permissions: contents: read issues: write