nerdexam
Microsoft

GH-900 · Question #23

GitHub Actions workflows can be directly triggered by which of the following events? (Choose three.)

The correct answer is A. Adding a comment to a discussion post D. Pushing to a GitHub repository F. Creating an Issue. GitHub Actions supports a wide range of webhook events as triggers: (A) Adding a comment to a discussion post - the 'discussion_comment' event can trigger a workflow; (D) Pushing to a GitHub repository - the 'push' event is one of the most common triggers; (F) Creating an Issue…

Modern Development

Question

GitHub Actions workflows can be directly triggered by which of the following events? (Choose three.)

Options

  • AAdding a comment to a discussion post
  • BCreating a new repository
  • CCommitting a change to a local git repository
  • DPushing to a GitHub repository
  • EDisabling a GitHub runner
  • FCreating an Issue

How the community answered

(22 responses)
  • A
    86% (19)
  • B
    5% (1)
  • E
    9% (2)

Explanation

GitHub Actions supports a wide range of webhook events as triggers: (A) Adding a comment to a discussion post - the 'discussion_comment' event can trigger a workflow; (D) Pushing to a GitHub repository - the 'push' event is one of the most common triggers; (F) Creating an Issue - the 'issues' event (with activity type 'opened') triggers workflows. Option B (creating a new repository) does not directly trigger workflows within that repo since the workflow file wouldn't exist yet. Option C (committing to a local git repository) has no effect until the commit is pushed to GitHub. Option E (disabling a GitHub runner) is an administrative action and does not trigger workflow runs.

Topics

#GitHub Actions#Workflow triggers#GitHub Events#Automation

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice