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
- github-actions-workflow-basics
- github-cli-gh
- github-actions-composite-actions
- github-actions-job-outputs
Claims
- id: C1 claim: A manually run workflow must use the workflow_dispatch event. source: S1 evidence: "configured to run on the
workflow_dispatchevent"
- id: C2 claim: The GitHub CLI command is gh workflow run WORKFLOW. source: S1 evidence: "gh workflow run WORKFLOW"
- id: C3 claim: Configure workflow_dispatch to enable a manual trigger. source: S2 evidence: "To enable a workflow to be triggered manually"
- id: C4 claim: Input values are available in the inputs context. source: S2 evidence: "access the input values in the
inputscontext"
Sources
- [S1] Manually running a workflow. GitHub Docs. https://docs.github.com/en/actions/how-tos/manage-workflow-runs/manually-run-a-workflow . License: CC-BY-4.0. Accessed 2026-11-17.
- [S2] Events that trigger workflows (workflow_dispatch). github/docs (GitHub). https://github.com/github/docs/blob/main/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md . License: CC-BY-4.0. Accessed 2026-11-17.
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
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.},
}
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.