Question
Where should workflow files be stored to be triggered by events in a repository?
- A. anywhere
- B. Nowhere; they must be attached to an action in the GitHub user interface.
- C. .github/workflows/ Correct
- D. .workflows/
- E. .github/actions/
Explanation
Workflows are YAML files that must be stored in the .github/workflows directory of the repository, and GitHub only runs workflow files from that directory when their events occur. They are not attached to actions through the user interface. .workflows/ is not a recognized location, and .github/actions/ is a common place for local custom actions, not for workflows.