Microsoft

GH-200 practice question 7

GitHub Actions · free question 7 of 20

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.

Practice the whole free set

Answer all 20 free GH-200 questions with instant feedback, or unlock all 106 questions with Learn and Exam modes.