Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions: Reusable workflows #98

Closed
github-product-roadmap opened this issue Jul 24, 2020 · 1 comment
Closed

Actions: Reusable workflows #98

github-product-roadmap opened this issue Jul 24, 2020 · 1 comment
Labels
actions Feature: GitHub Actions cloud Available on Cloud Enterprise Product SKU: GitHub Enterprise ga Feature phase: Generally available shipped Shipped

Comments

@github-product-roadmap
Copy link
Collaborator

github-product-roadmap commented Jul 24, 2020

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 familiar uses syntax. Optionally, use inputs and outputs to pass data between them, just like with actions.

For example:

name: Build & Release App

on:
  push:

jobs:
  build:
    uses: example-org/automation/workflows/build.yml@1

  release:
    needs: build
    uses: example-org/automation/workflows/release.yml@1
    with:
      artifact-url: jobs.build.outputs.artifact-url

Reusable workflows which are defined in internal repositories can be used by workflows in any repository within the same Enterprise.

@github github locked and limited conversation to collaborators Jul 24, 2020
@github-product-roadmap github-product-roadmap added actions Feature: GitHub Actions cloud Available on Cloud code-to-cloud ga Feature phase: Generally available Enterprise Product SKU: GitHub Enterprise labels Jul 24, 2020
@Sid-ah Sid-ah removed the tpm staffed label Jun 9, 2021
@github-product-roadmap github-product-roadmap changed the title Actions: Centrally managed workflow templates Actions: Reusable workflows Aug 11, 2021
@Sid-ah Sid-ah moved this from Q3 2021 – Jul-Sep to Q4 2021 – Oct-Dec in GitHub Public Roadmap Oct 8, 2021
@Sid-ah Sid-ah moved this to Q4 2021 – Oct-Dec in GitHub Public Roadmap Oct 8, 2021
@Sid-ah Sid-ah added the shipped Shipped label Dec 3, 2021
@Sid-ah
Copy link
Contributor

Sid-ah commented Dec 3, 2021

@Sid-ah Sid-ah closed this as completed Dec 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
actions Feature: GitHub Actions cloud Available on Cloud Enterprise Product SKU: GitHub Enterprise ga Feature phase: Generally available shipped Shipped
Projects
Archived in project
Development

No branches or pull requests

2 participants