Skip to content

ci: label dispatch, a label starts its own workflow (CTActions#149) - #675

Merged
ocots merged 1 commit into
mainfrom
chore/149-label-dispatch
Nov 11, 2026
Merged

ocots merged 1 commit into
mainfrom
chore/149-label-dispatch

Conversation

@ocots

@ocots ocots commented Nov 11, 2026

Copy link
Copy Markdown
Member

Part of control-toolbox/CTActions#149 (CTActions#151, merged), piloted on control-toolbox/CTFlows.jl#518.

A label added to a pull request no longer creates a run of every workflow with its jobs skipped: Labels.yml dispatches, by workflow_dispatch, only the workflow of the label just added. Runs started by different labels accumulate, and adding a label never cancels a run started by another.

  • Labels.yml (new): calls CTActions/.github/workflows/label-dispatch.yml@main on labeled, synchronize, reopened.
  • CI.yml, Documentation.yml, Breakage.yml: no more pull_request; they take pr / target / preview from workflow_dispatch. The if: guards on labels become guards on inputs.target. Everything else (runners, versions, test_args, GPU, targets) is unchanged.
  • The labels are the same (run ci …, run documentation, documentation push preview, run breakage).

What changes for the person using labels

  • A dispatched run is not in the Checks tab of the PR: it shows as a commit status in the merge box (CI / github, Documentation, Documentation / preview, Breakage / packages), with a link to the run. Required checks by name: none on this repository's main.
  • A run tests the head of the branch, not the merge commit of the PR.
  • A new push restarts the workflow of each label present, and cancels its previous run.

See CTActions docs/workflows/label-dispatch.md.

🤖 Generated with Claude Code

Labels.yml dispatches the workflow of the label just added; CI, Documentation and Breakage
listen to workflow_dispatch instead of pull_request, so runs started by different labels
accumulate and none cancels another.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ocots
ocots merged commit 0a2cbc4 into main Nov 11, 2026
4 checks passed
@ocots
ocots deleted the chore/149-label-dispatch branch November 11, 2026 12:08
@ocots ocots mentioned this pull request Nov 13, 2026
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.

2 participants