nerdexam
GitHub

GITHUB-ACTIONS · Question #9

Where should workflow files be stored to be triggered by events in a repository?

The correct answer is A. .github/workflows/. Workflow files must be stored in the .github/workflows/ directory of the repository. This is the standard location for GitHub Actions workflow files, and workflows in this directory are automatically triggered by events defined in the file, such as pushes, pull requests, or other

Author and maintain workflows

Question

Where should workflow files be stored to be triggered by events in a repository?

Options

  • A.github/workflows/
  • B.github/actions/
  • CNowhere; they must be attached to an act on in the GitHub user interface
  • Danywhere
  • E.workflows/

How the community answered

(21 responses)
  • A
    95% (20)
  • D
    5% (1)

Explanation

Workflow files must be stored in the .github/workflows/ directory of the repository. This is the standard location for GitHub Actions workflow files, and workflows in this directory are automatically triggered by events defined in the file, such as pushes, pull requests, or other

Topics

#workflow file location#.github/workflows#repository structure#event triggers

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice