nerdexam
Microsoft

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

Author and Maintain Workflows

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)
  • A
    5% (1)
  • B
    91% (20)
  • C
    5% (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

#GitHub Actions Workflows#Workflow Triggers#UI Configuration#Workflow Management

Community Discussion

No community discussion yet for this question.

Full GH-200 Practice