Actions: Reusable workflows #98
Labels
actions
Feature: GitHub Actions
cloud
Available on Cloud
Enterprise
Product SKU: GitHub Enterprise
ga
Feature phase: Generally available
shipped
Shipped
Summary
This feature enables you to reuse an entire workflow as if it were an action. Instead of copying and pasting workflow definitions across repositories, you can reference an existing workflow with a single line of configuration.
This issue used to be called “Centrally Managed Workflow Templates.”
Intended Outcome
Use this feature to create a library of reusable workflows. This will DRY your workflow configuration, and make it easier for everyone on your team to get started with Actions. Also see Required Workflows to require these workflows for certain situations, such as deploying to production.
How will it work?
To reuse a workflow, ensure it listens to a new
workflow_call
event trigger, and then reference it with the familiaruses
syntax. Optionally, useinputs
andoutputs
to pass data between them, just like with actions.For example:
Reusable workflows which are defined in internal repositories can be used by workflows in any repository within the same Enterprise.
The text was updated successfully, but these errors were encountered: