lfarci / github-actions

Preparation resources for the GitHub Actions certification
0 stars 0 forks source link

Describe where to locate a workflow in a repository #41

Closed lfarci closed 3 months ago

lfarci commented 3 months ago

In a GitHub repository, workflows are stored in the .github/workflows directory at the root level of the repository.

Each workflow is defined in its own YAML file. For example, you might have a workflow defined in .github/workflows/main.yml.

Here's an example of what the directory structure might look like:

my-repo
├── .github
│   └── workflows
│       ├── main.yml
│       └── another-workflow.yml
├── src
│   └── ...
└── README.md

In this example, there are two workflows: one defined in main.yml and another defined in another-workflow.yml.

You can view and edit these workflow files directly in GitHub, or you can clone the repository to your local machine and use a text editor or IDE.