Skip to content

Document That a Schedule Trigger Always Publishes for a Dispatch-Only Caller #2849

Closed

Description

@ptr727

Problem

publish-plan-task.yml returns publish=true for every schedule event:

  • .github/workflows/publish-plan-task.yml:74-76: schedule) # Docker weekly refresh (main-only by schedule config). publish=true.

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

🤖 Generated with Claude Code

Activity

  1. added
    prose
    on Oct 11, 2026
  2. ptr727 commented on Oct 12, 2026

    @ptr727
    OwnerAuthor

    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.

  3. added a commit that references this issue on Oct 12, 2026
    aa4b012
  4. added a commit that references this issue on Oct 12, 2026
    140c876
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    prose

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions