Skip to content

Commit 97dc910

Browse files
authored
[EDI] Using workflow templates (#56739)
1 parent 86bb097 commit 97dc910

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

content/actions/concepts/workflows-and-actions/reusable-workflows.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,15 @@ Reusable workflows and composite actions both help you to avoid duplication. Whe
3636

3737
## Reusable workflows and workflow templates
3838

39-
Workflow templates allow everyone in your organization who has permission to create workflows to do so more quickly and easily. When people create a new workflow, they can choose a workflow template and some or all of the work of writing the workflow will be done for them. Within a workflow template, you can also reference reusable workflows to make it easy for people to benefit from reusing centrally managed workflow code. If you use a commit SHA when referencing the reusable workflow, you can ensure that everyone who reuses that workflow will always be using the same YAML code. However, if you reference a reusable workflow by a tag or branch, be sure that you can trust that version of the workflow. For more information, see [AUTOTITLE](/actions/security-guides/security-hardening-for-github-actions#reusing-third-party-workflows).
39+
Workflow templates allow everyone in your organization who has permission to create workflows to do so more quickly and easily. When people create a new workflow, they can choose a workflow template and some or all of the work of writing the workflow will be done for them. Within a workflow template, you can also reference reusable workflows to make it easy for people to benefit from reusing centrally managed workflow code.
40+
41+
If you use a commit SHA when referencing the reusable workflow, you can ensure that everyone who reuses that workflow will always be using the same YAML code. However, if you reference a reusable workflow by a tag or branch, be sure that you can trust that version of the workflow. For more information, see [AUTOTITLE](/actions/security-guides/security-hardening-for-github-actions#reusing-third-party-workflows).
42+
43+
{% data variables.product.github %} offers workflow templates for a variety of languages and tooling. When you set up workflows in your repository, {% data variables.product.github %} analyzes the code in your repository and recommends workflows based on the language and framework in your repository. For example, if you use Node.js, {% data variables.product.github %} will suggest a workflow template file that installs your Node.js packages and runs your tests. You can search and filter to find relevant workflow templates.
44+
45+
{% data reusables.actions.workflow-templates-categories %}
46+
47+
{% data reusables.actions.workflow-templates-repo-link %}
4048

4149
For more information, see [AUTOTITLE](/actions/using-workflows/creating-starter-workflows-for-your-organization).
4250

content/actions/how-tos/writing-workflows/using-workflow-templates.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ topics:
2626

2727
{% data reusables.actions.enterprise-github-hosted-runners %}
2828

29-
## About workflow templates
30-
31-
Workflow templates are templates that help you to create your own {% data variables.product.prodname_actions %} workflows for a repository. They offer an alternative to starting from a blank workflow file and are useful because some of the work will already have been done for you.
32-
33-
{% data variables.product.github %} offers workflow templates for a variety of languages and tooling. When you set up workflows in your repository, {% data variables.product.github %} analyzes the code in your repository and recommends workflows based on the language and framework in your repository. For example, if you use Node.js, {% data variables.product.github %} will suggest a workflow template file that installs your Node.js packages and runs your tests. You can search and filter to find relevant workflow templates.
34-
35-
{% data reusables.actions.workflow-templates-categories %}
36-
37-
{% data reusables.actions.workflow-templates-repo-link %}
38-
39-
You can also create your own workflow template to share with your organization. These workflow templates will appear alongside the {% data variables.product.github %}-provided workflow templates. Anyone with write access to the organization's `.github` repository can set up a workflow template. For more information, see [AUTOTITLE](/actions/using-workflows/creating-starter-workflows-for-your-organization).
40-
4129
## Choosing and using a workflow template
4230

4331
{% data reusables.repositories.navigate-to-repo %}

0 commit comments

Comments
 (0)