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…
Question
What will the output be for the following event trigger block in a workflow?
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)- A3% (1)
- B10% (3)
- C62% (18)
- D3% (1)
- E21% (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
Community Discussion
No community discussion yet for this question.
