From 5e31419f8998e637a233e9f8dc167131f5b8187f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 11 Oct 2026 03:54:07 +0000 Subject: [PATCH] Add job-discriminator concurrency tip for mixed schedule/dispatch archetypes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- patterns/archetypes/repo-maintainer.json | 3 ++- patterns/archetypes/responsive-docs-tester.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/patterns/archetypes/repo-maintainer.json b/patterns/archetypes/repo-maintainer.json index 1fc4304..171ad61 100644 --- a/patterns/archetypes/repo-maintainer.json +++ b/patterns/archetypes/repo-maintainer.json @@ -60,7 +60,8 @@ "Use persistent memory and check for existing work before acting", "Limit each run to one high-value maintenance task", "Leave merges, approvals, and destructive actions to maintainers", - "Add a pre-activation step that skips scheduled runs once too many open PRs share your title prefix, to avoid spamming maintainers" + "Add a pre-activation step that skips scheduled runs once too many open PRs share your title prefix, to avoid spamming maintainers", + "Set concurrency.job-discriminator to ${{ github.event_name == 'schedule' && 'scheduled' || github.run_id }} so a manually- or slash-command-triggered run doesn't get cancelled by (or cancel) the recurring scheduled run" ], "anti_patterns": [ "repo-assist", diff --git a/patterns/archetypes/responsive-docs-tester.json b/patterns/archetypes/responsive-docs-tester.json index 0322b8e..dc240ea 100644 --- a/patterns/archetypes/responsive-docs-tester.json +++ b/patterns/archetypes/responsive-docs-tester.json @@ -31,7 +31,8 @@ "Capture screenshots only on failure and publish them with the upload-asset safe output so evidence is attached without bloating the report", "Always stop the local preview server in a cleanup step even if earlier steps fail", "Call noop when every viewport passes instead of leaving no output", - "Set expires and close-older-issues (or skip-if-match) on create-issue so scheduled runs don't accumulate duplicate reports" + "Set expires and close-older-issues (or skip-if-match) on create-issue so scheduled runs don't accumulate duplicate reports", + "If workflow_dispatch exposes inputs (e.g. devices, docs_dir, build_command) alongside the schedule trigger, set concurrency.job-discriminator to ${{ github.event_name == 'schedule' && 'scheduled' || github.run_id }} so an ad hoc dispatched run with different inputs doesn't cancel or get cancelled by the recurring scheduled run" ], "anti_patterns": [] }