nerdexam
GitHub

GITHUB-ACTIONS · Question #61

You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?

The correct answer is D. repository_dispatch. The repository_dispatch event allows you to trigger a workflow in response to external activity. It is commonly used when you need to trigger a workflow from outside GitHub, such as from another system or service, by sending a request to the GitHub API. This event provides…

Author and maintain workflows

Question

You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?

Options

  • Acheck_suite
  • Bworkflow_run
  • Cdeployment
  • Drepository_dispatch

How the community answered

(24 responses)
  • B
    4% (1)
  • C
    4% (1)
  • D
    92% (22)

Explanation

The repository_dispatch event allows you to trigger a workflow in response to external activity. It is commonly used when you need to trigger a workflow from outside GitHub, such as from another system or service, by sending a request to the GitHub API. This event provides flexibility to integrate with various external systems and trigger workflows in a GitHub repository.

Topics

#repository_dispatch#workflow triggers#external events#GitHub API

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice