Dispatch a workflow with zfj workflow run #32

Closed
opened 2026-10-16 23:59:32 -05:00 by jeff · 0 comments
Owner

Part of #27

What

zfj workflow run <file> [--ref <ref>] [-f key=value]…: dispatch a workflow.

  • Calls dispatchWorkflow with return_run_info; -f is repeatable and fills inputs.
  • --ref defaults to the repository's default branch, as gh does — not the local branch, which may never have been pushed.
  • Prints the new run's run number and URL; --json prints the run as the API sent it.
  • zfj workflow alone lists its commands, which are only run for now: the API has no operation listing a repository's workflows.

Done when

zfj workflow run starts a run of a workflow that is harmless to dispatch — not release.yaml, which would publish a release and submit it to winget again — and prints its run number, -f inputs reach the workflow, and the README and usage describe it.

Part of #27 ## What `zfj workflow run <file> [--ref <ref>] [-f key=value]…`: dispatch a workflow. - Calls `dispatchWorkflow` with `return_run_info`; `-f` is repeatable and fills `inputs`. - `--ref` defaults to the repository's default branch, as `gh` does — not the local branch, which may never have been pushed. - Prints the new run's run number and URL; `--json` prints the run as the API sent it. - `zfj workflow` alone lists its commands, which are only `run` for now: the API has no operation listing a repository's workflows. ## Done when `zfj workflow run` starts a run of a workflow that is harmless to dispatch — not `release.yaml`, which would publish a release and submit it to winget again — and prints its run number, `-f` inputs reach the workflow, and the README and usage describe it.
jeff self-assigned this 2026-10-17 00:21:41 -05:00
jeff closed this issue 2026-10-17 10:34:18 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jeff/zfj#32
No description provided.