AZ-400 · Question #606
Drag and Drop Question You have a GitHub repository named Repo1. You plan to implement continuous integration and continuous delivery (CI/CD) by using GitHub Actions. You need to create a workflow…
The correct answer is Create a project.; Create a directory named .github/workflows.; Create a YAML file.; Define the workflow in the YAML file. To create a GitHub Actions workflow, you must first create a project (repository context), then create the required directory structure '.github/workflows' (not '.workflows'), create a YAML file within that directory, and then define the workflow triggers, jobs, and steps…
Question
Exhibit
Answer Area
Drag items
Correct arrangement
- Create a project.
- Create a directory named .github/workflows.
- Create a YAML file.
- Define the workflow in the YAML file.
Explanation
To create a GitHub Actions workflow, you must first create a project (repository context), then create the required directory structure '.github/workflows' (not '.workflows'), create a YAML file within that directory, and then define the workflow triggers, jobs, and steps inside that YAML file. GitHub Actions specifically requires workflows to be placed in the '.github/workflows' directory to be recognized and executed automatically by the platform.
Topics
Community Discussion
No community discussion yet for this question.
