Skip to content

ci: allow CI to be dispatched against a ref - #36

Merged
cubehouse merged 1 commit into
mainfrom
ci/allow-workflow-dispatch
Sep 8, 2026
Merged

cubehouse merged 1 commit into
mainfrom
ci/allow-workflow-dispatch

Conversation

@cubehouse

Copy link
Copy Markdown
Member

Prerequisite for fixing the spec-drift PRs, and inert on its own.

Adds workflow_dispatch to the CI workflow. push and pull_request still trigger it exactly as before; this only makes the workflow startable against a chosen ref.

Why it is needed: the drift job opens its PR with GITHUB_TOKEN, and GitHub does not start workflow runs from GITHUB_TOKEN-raised events. The required Test (Node …) checks therefore never report, and #34 sits blocked on a report it can never receive. workflow_dispatch and repository_dispatch are the two documented exceptions, so drift can start its own CI run.

A workflow has to carry the trigger on the default branch before it can be dispatched at all, which is why this lands first and separately. The drift-job change follows once the mechanism is proven end to end.

🤖 Generated with Claude Code

Adds workflow_dispatch to the CI workflow. No behaviour change on its own:
push and pull_request still trigger it exactly as before.

This is the prerequisite for letting the spec-drift job start CI for its own
PR. Drift opens that PR with GITHUB_TOKEN, and GitHub does not start workflow
runs from GITHUB_TOKEN-raised events, so the required checks never report and
the PR is permanently blocked on a report it cannot receive. workflow_dispatch
and repository_dispatch are the two documented exceptions to that rule.

A workflow must carry the trigger on the default branch before it can be
dispatched at all, so this lands first and on its own.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@cubehouse
cubehouse merged commit 8884361 into main Sep 8, 2026
3 checks passed
@cubehouse
cubehouse deleted the ci/allow-workflow-dispatch branch September 8, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant