From 32ed63fcddc936fd422f1f482bfc29ea0fc7fa2e Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Thu, 26 Mar 2026 12:16:38 +0100 Subject: [PATCH] Prefix docs-build concurrency group to avoid collisions during migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When repositories migrate from elastic/docs-builder's preview-build.yml to elastic/docs-actions' docs-build.yml, both the old and new workflows coexist temporarily: - The OLD workflow (on the base branch) triggers via pull_request_target and calls preview-build.yml, which defines a concurrency group of `${github.workflow}-${branch}`. - The NEW workflow (on the PR branch) triggers via pull_request and calls docs-build.yml, which defined the same concurrency group pattern. Because both caller workflows typically share the same `name: docs-build`, they resolve to identical concurrency groups. Both have cancel-in-progress: true for PR events, so whichever starts second cancels the first — causing the old workflow's jobs to show as "cancelled" on the PR checks. This was observed on elastic/ecs-dotnet#558, where every commit showed the pull_request_target docs-build run cancelled by the pull_request run (e.g. commit 3f57a7d: the pull_request_target run started at 14:48:00, the pull_request run started 3 seconds later and cancelled it). Adding a `docs-actions-build-` prefix to the concurrency group makes it distinct from preview-build.yml's group, so both workflows run independently during the migration window. Made-with: Cursor --- .github/workflows/docs-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index 4e62b2a..e8703db 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -43,7 +43,7 @@ permissions: pull-requests: read concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref }} + group: docs-actions-build-${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: