nerdexam
GitHub

GITHUB-ACTIONS · Question #19

What will the output be for the following event trigger block in a workflow?

The correct answer is C. It runs the workflow when an issue is edited or when an issue comment created. The provided event trigger block specifies two types of events: For issues: the workflow triggers on opened or edited issues. For issue_comment: the workflow triggers when an issue comment is created. This configuration ensures the workflow will run when either an issue is…

Author and maintain workflows

Question

What will the output be for the following event trigger block in a workflow?

Exhibit

GITHUB-ACTIONS question #19 exhibit

Options

  • AIt throws a workflow syntax error, pointing to the types definition in issue_comment event.
  • BIt throws a workflow syntax error, pointing to the types definition in issues event.
  • CIt runs the workflow when an issue is edited or when an issue comment created.
  • DIt runs the workflow when an issue or issue comment in the workflow's repository is created or
  • EIt runs the workflow when an issue is created or edited, or when an issue or pull request comment

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    10% (3)
  • C
    62% (18)
  • D
    3% (1)
  • E
    21% (6)

Explanation

The provided event trigger block specifies two types of events: For issues: the workflow triggers on opened or edited issues. For issue_comment: the workflow triggers when an issue comment is created. This configuration ensures the workflow will run when either an issue is opened or edited, or an issue comment is created.

Topics

#event triggers#issue_comment event#issues event#types filtering

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice