You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document That a Schedule Trigger Always Publishes for a Dispatch-Only Caller #2849
A dispatch-only repo (no push publish, release by deliberate workflow_dispatch) that adds a retest-only weekly schedule, to catch upstream drift without releasing, therefore gets publish=true on the scheduled run. It has to add its own github.event_name == 'workflow_dispatch' condition on every publish job to stop that.
Neither document describes this shape:
WORKFLOW.md:166 (D4.1) lists the schedule only as the "main-only weekly schedule (Docker)" and says a "source-only repo publishes on dispatch only", with no word on a schedule that must not publish.
catalog/snippets/workflows/publish-release.yml and docs/reusable-workflows.md:518 describe a Docker repo's schedule as a publish trigger and nothing else.
.github/workflows/publish-plan-task.yml:18-20 says an unused case "is simply inert", which is true for an absent trigger and false for a present one with a different meaning.
Impact
An adopter that schedules a retest silently publishes a release every week unless it reads the plan task and adds the guard itself. The failure is a surprise release, which D4.1 exists to prevent.
Suggested fix
Either document the guard (a github.event_name == 'workflow_dispatch' condition on each publish job) as the shape for a dispatch-only repo with a retest-only schedule in D4.1 and in the catalog snippet notes, or give the plan task an input that says a schedule does not publish, defaulting to today's behavior.
Found while: adopting validate-task.yml in ptr727/homeassistant-purpleair
Maintainer decision (2026-10-12): document the guard. D4.1 and the catalog snippet notes name the dispatch-only shape, each release job's if: carrying a top-level github.event_name == 'workflow_dispatch' conjunct, matching what the #2883 audit check accepts. No plan-task input is added.
Activity
ptr727 commentedon Oct 12, 2026
Maintainer decision (2026-10-12): document the guard. D4.1 and the catalog snippet notes name the dispatch-only shape, each release job's
if:carrying a top-levelgithub.event_name == 'workflow_dispatch'conjunct, matching what the #2883 audit check accepts. No plan-task input is added.Document the Dispatch Guard for a Schedule That Never Publishes (#2890)
Promote Three Develop Fixes for the Dispatch Guard, File-Table Covera…