Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Make a workflow reusable, call it in another workflow, and use a matrix strategy to run multiple versions.

License

Notifications You must be signed in to change notification settings

GHA-Flisol/reusable-workflows

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reusable workflows and matrix strategies

Make a workflow reusable, call it in another workflow, and use a matrix strategy to run multiple versions.

Welcome

Reusable workflows offer a simple and powerful way to avoid copying and pasting workflows across your repositories, and adding a matrix strategy lets you use variables in a single job definition to automatically create multiple job runs.

  • Who is this for: Developers, DevOps engineers, students, managers, teams, GitHub users.
  • What you'll learn: How to create and use reusable workflows, create a matrix strategy, trigger workflows, and find workflow logs.
  • What you'll build: An Actions workflow with a matrix strategy that calls a reusable workflow to output multiple verisions of node.
  • Prerequisites: In this course you will work with pull requests and YAML workflow files. We recommend you take the Introduction to GitHub course first or be familiar with GitHub basics, and the Hello GitHub Actions course for an introduction to GitHub Actions and workflow files.
  • How long: This course can be finished in less than one hour.
  • Attribution: This Skills course was inspired by a demo video created by Mickey Gousset (@mickeygousset).

In this course, you will:

  1. Make a reusable workflow
  2. Add a job
  3. Add a matrix strategy
  4. Merge your pull request
  5. Trigger the workflow

How to start this course

start-course

  1. Right-click Start course and open the link in a new tab.
  2. In the new tab, most of the prompts will automatically fill in for you.
    • For owner, choose your personal account or an organization to host the repository.
    • We recommend creating a public repository, as private repositories will use Actions minutes.
    • Scroll down and click the Create repository button at the bottom of the form.
  3. After your new repository is created, wait about 20 seconds, then refresh the page. Follow the step-by-step instructions in the new repository's README.

Get help: Post in our discussion boardReview the GitHub status page

© 2023 GitHub • Code of ConductMIT License

About

Make a workflow reusable, call it in another workflow, and use a matrix strategy to run multiple versions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published