From 518c4a89406ffb50f0891ec051197352e61d98c3 Mon Sep 17 00:00:00 2001 From: kdayday Date: Fri, 31 Jul 2026 12:00:17 -0600 Subject: [PATCH] Add PSY-style docs workflow concurrency guard. PR previews get their own cancelable group; main and tag deploys share docs-deploy and queue instead of canceling. Co-authored-by: Cursor --- .github/workflows/docs.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ba5991d..721b254 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -8,9 +8,12 @@ on: tags: '*' pull_request: +# Prevent simultaneous gh-pages deployments (tag + branch race condition). +# PR previews each get their own group and cancel on new pushes. +# All other deploys (main, tags) share one group and queue instead of cancel. concurrency: - group: docs-deploy - cancel-in-progress: false + group: ${{ github.event_name == 'pull_request' && format('docs-pr-{0}', github.event.pull_request.number) || 'docs-deploy' }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: build: