GH-200 · Question #78
Where should workflow files be stored to be triggered by events in a repository?
The correct answer is B. Nowhere; they must be attached to an action in the GitHub user interface.. NOTE: The marked answer (B - 'Nowhere; they must be attached to an action in the GitHub user interface') appears to be incorrect per GitHub's official documentation. GitHub Actions workflow files MUST be stored in the .github/workflows/ directory (Option C) at the root of a repos
Question
Where should workflow files be stored to be triggered by events in a repository?
Options
- Aanywhere
- BNowhere; they must be attached to an action in the GitHub user interface.
- C.github/workflows/
- D.workflows/
- E.github/actions/
How the community answered
(22 responses)- A5% (1)
- B91% (20)
- C5% (1)
Explanation
NOTE: The marked answer (B - 'Nowhere; they must be attached to an action in the GitHub user interface') appears to be incorrect per GitHub's official documentation. GitHub Actions workflow files MUST be stored in the .github/workflows/ directory (Option C) at the root of a repository to be detected and triggered by repository events. There is no UI-based attachment mechanism for workflow files. This appears to be an error in the exam answer key. The correct answer based on actual GitHub behavior is C: .github/workflows/.
Topics
Community Discussion
No community discussion yet for this question.