lfarci / github-actions

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

Describe how to use an organization’s templated workflow #44

Closed lfarci closed 4 months ago

lfarci commented 4 months ago

Using starter workflow

lfarci commented 4 months ago

To use an organization's templated workflow, follow these steps:

  1. Navigate to the GitHub repository where you want to use the templated workflow.

  2. Click on the "Actions" tab.

  3. If the organization has set up workflow templates, you'll see a section called "Workflows created by your organization". Click on the "Set up this workflow" button next to the template you want to use.

  4. This will create a new workflow file in your repository based on the template. You can modify this file as needed to fit your specific use case.

  5. Once you're done making changes, click on "Start commit" at the top right of the editor. Enter a commit message and description, choose whether you want to commit directly to the main branch or create a new branch and start a pull request, and then click on "Commit new file".

  6. The new workflow will now be set up in your repository and will run according to the event triggers defined in the workflow file.

Remember, the availability of organization workflow templates depends on whether your organization has set up these templates. If no templates are set up, you won't see the "Workflows created by your organization" section.