Posts

Showing posts with the label GitHub Reusable Workflows

Reusable Workflows - GitHub Actions

Image
Overview: Rather than copying and pasting from one workflow to another, you can make workflows reusable. You and anyone with access to the reusable workflow can then call the reusable workflow from another workflow. Reusing workflows avoids duplication. This makes workflows easier to maintain and allows you to create new workflows more quickly by building on the work of others, just as you do with actions.  The diagram below shows an in-progress workflow run that uses a reusable workflow. After each of three build jobs on the left of the diagram completes successfully, a dependent job called "Deploy" is run. The "Deploy" job calls a reusable workflow that contains three jobs: "Staging", "Review", and "Production." The "Production" deployment job only runs after the "Staging" job has completed successfully. When a job targets an environment, the workflow run displays a progress bar that shows the number of steps in th...