X Tutup
The Wayback Machine - https://web.archive.org/web/20211027060159/https://github.com/github/roadmap/issues/98
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

Open
github-product-roadmap opened this issue Jul 24, 2020 · 0 comments
Open

Actions: Reusable workflows #98

github-product-roadmap opened this issue Jul 24, 2020 · 0 comments

Comments

@github-product-roadmap
Copy link
Collaborator

@github-product-roadmap 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 this to Q1 2021 – Jan-Mar in GitHub public roadmap Jul 24, 2020
@alexcnichols alexcnichols moved this from Q1 2021 – Jan-Mar to Q2 2021 – Apr-Jun in GitHub public roadmap Oct 13, 2020
@Sid-ah Sid-ah moved this from Q2 2021 – Apr-Jun to Q1 2021 – Jan-Mar in GitHub public roadmap Mar 9, 2021
@Sid-ah Sid-ah moved this from Q1 2021 – Jan-Mar to Q3 2021 – Jul-Sep in GitHub public roadmap Mar 10, 2021
@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
@github-product-roadmap github-product-roadmap moved this from Q3 2021 – Jul-Sep to Q4 2021 – Oct-Dec in GitHub public roadmap Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
GitHub public roadmap
Q4 2021 – Oct-Dec
Status: Q4 2021 – Oct-Dec
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
X Tutup