Microsoft

GH-200 practice question 20

GitHub Actions · free question 20 of 20

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.

Practice the whole free set

Answer all 20 free GH-200 questions with instant feedback, or unlock all 106 questions with Learn and Exam modes.