Question
You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?
- A. workflow_run
- B. deployment
- C. check_suite
- D. repository_dispatch Correct
Explanation
The repository_dispatch event is triggered through the GitHub API, with a custom event_type, when you want to run a workflow for activity that happens outside of GitHub. workflow_run fires when another workflow is requested or completes, deployment fires when a deployment is created, and check_suite fires on check suite activity inside GitHub.