From b6d8f550d4acec329abf48f732fec2e7f4348a72 Mon Sep 17 00:00:00 2001 From: Bruno Devic Date: Mon, 13 Apr 2026 08:42:25 +0200 Subject: [PATCH] Add optional concurrency_suffix input to check-synchronization When multiple callers invoke check-synchronization in parallel within the same workflow run, they all resolve to the same concurrency group and GitHub randomly cancels the competing jobs. Adding an optional concurrency_suffix input lets callers provide a unique value so their concurrency groups don't collide. --- .github/workflows/check-synchronization.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-synchronization.yml b/.github/workflows/check-synchronization.yml index b1f12bd..a5e6482 100644 --- a/.github/workflows/check-synchronization.yml +++ b/.github/workflows/check-synchronization.yml @@ -18,6 +18,10 @@ on: required: false type: string default: master + concurrency_suffix: # optional suffix to make the concurrency group unique per caller + required: false + type: string + default: '' secrets: upstream_reader_app_key: required: false @@ -31,7 +35,7 @@ on: value: ${{ jobs.job_check_branches_sync.outputs.refs_synced }} concurrency: - group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }} + group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}${{ inputs.concurrency_suffix && format('-{0}', inputs.concurrency_suffix) || '' }} jobs: job_check_env_context: