← All notes

workflow_dispatch lets you run a workflow manually from the UI, CLI, or API

Answer: A manual run requires the workflow to listen for workflow_dispatch. On GitHub, a Run workflow button is present if the workflow file exists on the default branch. You can also run the workflow with gh workflow run or the REST API.

Inputs and the CLI

To enable a workflow to be triggered manually, configure on: workflow_dispatch. You can define custom input properties, defaults, and required inputs. When the workflow runs, access those values in the inputs context.

Use gh workflow run WORKFLOW, and pass inputs with -f in key=value format. You can also pass inputs as JSON by using standard input. Use the --ref flag to run the workflow on a branch other than the default branch.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Manually running a workflow, CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.; github/docs (GitHub), Events that trigger workflows (workflow_dispatch), CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Manually running a workflow, CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.; github/docs (GitHub), Events that trigger workflows (workflow_dispatch), CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc..

Cite this

Permanent ID: iil:note:8s51ae2n

iinventedlight. 2026. "workflow_dispatch lets you run a workflow manually from the UI, CLI, or API." iinventedlight Library, iil:note:8s51ae2n, version of 2026-11-17. https://iinventedlight.com/library/notes/github-actions-workflow-dispatch/. License: CC-BY-4.0.

@misc{iil_note_8s51ae2n,
  author = {{iinventedlight}},
  title = {{workflow\_dispatch lets you run a workflow manually from the UI, CLI, or API}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-17},
  url = {https://iinventedlight.com/library/notes/github-actions-workflow-dispatch/},
  note = {Permanent ID iil:note:8s51ae2n. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/github-actions-workflow-dispatch.md.