Question
Which workflow event is used to manually trigger a workflow run?
- A. status
- B. workflow_dispatch Correct
- C. workflow_run
- D. create
Explanation
The workflow_dispatch event lets you start a workflow manually from the Actions tab, with GitHub CLI or through the REST API, and it can define inputs. workflow_run fires automatically when another workflow is requested or completes. status fires when a commit status changes, and create fires when a branch or tag is created, so neither of them is a manual trigger.