QuestionQ2

Author and manage workflows

You need to create a reusable GitHub Actions workflow template named ci.yml. The solution must ensure that ci.yml is shown in the GitHub Actions New workflow interface.

Where should ci.yml be stored?

  • A .github/workflow-templates
  • B .github/templates
  • C the root directory of each repository
  • D .github/workflows
Explanation

GitHub Actions workflow templates intended for the New workflow interface are placed in the workflow-templates directory of an organization’s .github repository. Standard executable workflow files instead use .github/workflows; template display also relies on an associated metadata file in the template directory.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!