Skip to content

Commit 0fc817b

Browse files
authored
repo sync
2 parents 880d86d + 3038200 commit 0fc817b

4 files changed

Lines changed: 26 additions & 12 deletions

File tree

content/actions/learn-github-actions/managing-complex-workflows.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,17 @@ For more information, see ["Using labels with self-hosted runners](/actions/hos
154154
You can configure environments with protection rules and secrets. Each job in a workflow can reference a single environment. Any protection rules configured for the environment must pass before a job referencing the environment is sent to a runner. For more information, see "[Environments](/actions/reference/environments)."
155155
{% endif %}
156156

157+
### Using a workflow template
158+
159+
{% data reusables.actions.workflow-template-overview %}
160+
161+
{% data reusables.repositories.navigate-to-repo %}
162+
{% data reusables.repositories.actions-tab %}
163+
1. If your repository already has existing workflows: In the upper-left corner, click **New workflow**.
164+
![Create a new workflow](/assets/images/help/repository/actions-new-workflow.png)
165+
1. Under the name of the template you'd like to use, click **Set up this workflow**.
166+
![Set up this workflow](/assets/images/help/settings/actions-create-starter-workflow.png)
167+
157168
### Next steps
158169

159170
To continue learning about {% data variables.product.prodname_actions %}, see "[Sharing workflows with your organization](/actions/learn-github-actions/sharing-workflows-with-your-organization)."

content/actions/learn-github-actions/sharing-workflows-with-your-organization.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ This procedure demonstrates how to create a workflow template and metadata file.
3232

3333
```yaml
3434
name: Octo Organization CI
35-
35+
3636
on:
3737
push:
3838
branches: [ $default-branch ]
3939
pull_request:
4040
branches: [ $default-branch ]
41-
41+
4242
jobs:
4343
build:
4444
runs-on: ubuntu-latest
45-
45+
4646
steps:
47-
- uses: actions/checkout@v2
48-
49-
- name: Run a one-line script
50-
run: echo Hello from Octo Organization
47+
- uses: actions/checkout@v2
48+
49+
- name: Run a one-line script
50+
run: echo Hello from Octo Organization
5151
```
5252
1. Create a metadata file inside the `workflow-templates` directory. The metadata file must have the same name as the workflow file, but instead of the `.yml` extension, it must be appended with `.properties.json`. For example, this file named `octo-organization-ci.properties.json` contains the metadata for a workflow file named `octo-organization-ci.yml`:
5353
```yaml
@@ -75,7 +75,7 @@ To add another workflow template, add your files to the same `workflow-templates
7575

7676
![Workflow template files](/assets/images/help/images/workflow-template-files.png)
7777

78-
### Using a workflow template
78+
### Using a workflow template from your organization
7979

8080
This procedure demonstrates how a member of your organization can find and use a workflow template to create a new workflow. An organization's workflow templates can be used by anyone who is a member of the organization.
8181

content/actions/quickstart.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ Committing the workflow file in your repository triggers the `push` event and ru
6969
{% endif %}
7070
{% data reusables.repositories.view-failed-job-results-superlinter %}
7171
72-
### More starter workflows
72+
### More workflow templates
7373
74-
{% data variables.product.prodname_dotcom %} provides preconfigured workflow templates that you can start from to automate or create a continuous integration workflows. You can browse the full list of workflow templates in the {% if currentVersion == "free-pro-team@latest" %}[actions/starter-workflows](https://github.com/actions/starter-workflows) repository{% else %} `actions/starter-workflows` repository on {% data variables.product.product_location %}{% endif %}.
74+
{% data reusables.actions.workflow-template-overview %}
7575
7676
### Next steps
7777
@@ -134,9 +134,9 @@ Printing "Hello, World!" is a great way to explore the basic set up and syntax o
134134
1. In the workflow logs, expand the 'Run echo "Hello World!"' section.
135135
![Workflow detail](/assets/images/help/repository/workflow-log-listing.png)
136136
137-
### More starter workflows
137+
### More workflow templates
138138
139-
{% data variables.product.prodname_dotcom %} provides preconfigured workflow templates that you can start from to automate or create a continuous integration workflows. You can browse the full list of workflow templates in the {% if currentVersion == "free-pro-team@latest" %}[actions/starter-workflows](https://github.com/actions/starter-workflows) repository{% else %} `actions/starter-workflows` repository on {% data variables.product.product_location %}{% endif %}.
139+
{% data reusables.actions.workflow-template-overview %}
140140
141141
### Next steps
142142
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% data variables.product.prodname_dotcom %} provides preconfigured workflow templates that you can customize to create your own continuous integration workflow. {% data variables.product.product_name %} analyzes your code and shows you CI templates that might be useful for your repository. For example, if your repository contains Node.js code, you'll see suggestions for Node.js projects. You can use workflow templates as a starting place to build your custom workflow or use them as-is.
2+
3+
You can browse the full list of workflow templates in the {% if currentVersion == "free-pro-team@latest" %}[actions/starter-workflows](https://github.com/actions/starter-workflows) repository{% else %} `actions/starter-workflows` repository on {% data variables.product.product_location %}{% endif %}.

0 commit comments

Comments
 (0)