Skip to content

Commit d0a1296

Browse files
authored
Merge pull request #12630 from github/repo-sync
repo sync
2 parents 37578d5 + 116712b commit d0a1296

10 files changed

Lines changed: 459 additions & 387 deletions

File tree

translations/log/pt-resets.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ translations/pt-BR/content/actions/hosting-your-own-runners/using-a-proxy-server
2828
translations/pt-BR/content/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow.md,Listed in localization-support#489
2929
translations/pt-BR/content/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow.md,rendering error
3030
translations/pt-BR/content/actions/learn-github-actions/contexts.md,rendering error
31+
translations/pt-BR/content/actions/learn-github-actions/creating-workflow-templates.md,rendering error
3132
translations/pt-BR/content/actions/learn-github-actions/environment-variables.md,rendering error
3233
translations/pt-BR/content/actions/learn-github-actions/expressions.md,rendering error
3334
translations/pt-BR/content/actions/learn-github-actions/managing-complex-workflows.md,Listed in localization-support#489
@@ -37,6 +38,7 @@ translations/pt-BR/content/actions/learn-github-actions/understanding-github-act
3738
translations/pt-BR/content/actions/learn-github-actions/usage-limits-billing-and-administration.md,rendering error
3839
translations/pt-BR/content/actions/learn-github-actions/workflow-commands-for-github-actions.md,rendering error
3940
translations/pt-BR/content/actions/learn-github-actions/workflow-syntax-for-github-actions.md,rendering error
41+
translations/pt-BR/content/actions/publishing-packages/publishing-nodejs-packages.md,rendering error
4042
translations/pt-BR/content/admin/advanced-security/configuring-code-scanning-for-your-appliance.md,rendering error
4143
translations/pt-BR/content/admin/advanced-security/configuring-secret-scanning-for-your-appliance.md,rendering error
4244
translations/pt-BR/content/admin/advanced-security/deploying-github-advanced-security-in-your-enterprise.md,rendering error
@@ -83,8 +85,10 @@ translations/pt-BR/content/admin/user-management/monitoring-activity-in-your-ent
8385
translations/pt-BR/content/authentication/keeping-your-account-and-data-secure/connecting-with-third-party-applications.md,rendering error
8486
translations/pt-BR/content/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository.md,rendering error
8587
translations/pt-BR/content/authentication/keeping-your-account-and-data-secure/reviewing-your-deploy-keys.md,rendering error
88+
translations/pt-BR/content/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log.md,rendering error
8689
translations/pt-BR/content/authentication/managing-commit-signature-verification/signing-commits.md,rendering error
8790
translations/pt-BR/content/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-two-factor-authentication-delivery-methods-for-your-mobile-device.md,rendering error
91+
translations/pt-BR/content/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials.md,rendering error
8892
translations/pt-BR/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md,Listed in localization-support#489
8993
translations/pt-BR/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md,rendering error
9094
translations/pt-BR/content/billing/index.md,rendering error

translations/pt-BR/content/actions/learn-github-actions/creating-workflow-templates.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Criando modelos de fluxo de trabalho
3-
shortTitle: Criando modelos
4-
intro: Saiba como criar modelos de fluxo de trabalho para ajudar as pessoas na sua equipe a adicionar novos fluxos de trabalho com mais facilidade.
2+
title: Creating workflow templates
3+
shortTitle: Creating templates
4+
intro: Learn how you can create workflow templates to help people in your team add new workflows more easily.
55
redirect_from:
66
- /actions/configuring-and-managing-workflows/sharing-workflow-templates-within-your-organization
77
versions:
@@ -19,35 +19,35 @@ topics:
1919
{% data reusables.actions.enterprise-github-hosted-runners %}
2020
{% data reusables.actions.ae-beta %}
2121

22-
## Visão Geral
22+
## Overview
2323

2424
{% data reusables.actions.workflow-organization-templates %}
2525

26-
## Criar um modelo do fluxo de trabalho
26+
## Creating a workflow template
2727

28-
Os modelos do fluxo de trabalh podem ser criados por usuários com acesso de gravação ao repositório `.github` da organização. Em seguida, os modelos podem ser usados por integrantes da organização com permissão para criar fluxos de trabalho.
28+
Workflow templates can be created by users with write access to the organization's `.github` repository. The templates can then be used by organization members who have permission to create workflows.
2929

3030
{% ifversion fpt %}
31-
Os seus modelos de fluxo de trabalho podem ser usados para criar fluxos de trabalho somente em repositórios públicos. As organizações que usam {% data variables.product.prodname_ghe_cloud %} também podem usar modelos de fluxo de trabalho para criar fluxos de trabalho em repositórios privados. Para obter mais informações, consulte a [documentação de {% data variables.product.prodname_ghe_cloud %}](/enterprise-cloud@latest/actions/learn-github-actions/creating-workflow-templates).
31+
Your workflow templates can be used to create workflows in public repositories only. Organizations using {% data variables.product.prodname_ghe_cloud %} can also use workflow templates to create workflows in private repositories. For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/actions/learn-github-actions/creating-workflow-templates).
3232
{% endif %}
3333

3434
{% ifversion fpt or ghes > 3.3 or ghae-issue-4757 or ghec %}
3535
{% note %}
3636

37-
**Observação:** Para evitar duplicação em fluxos de trabalho criados a partir de um modelo você pode chamar fluxos de trabalho reutilizáveis a partir de um modelo de fluxo de trabalho. Isso pode ajudar a manter seus fluxos de trabalho de forma mais fácil. Para obter mais informações, consulte "[Reutilizando fluxos de trabalho](/actions/learn-github-actions/reusing-workflows)".
37+
**Note:** To avoid duplication in workflows created from a template you can call reusable workflows from within a workflow template. This can help make your workflows easier to maintain. For more information, see "[Reusing workflows](/actions/learn-github-actions/reusing-workflows)."
3838

3939
{% endnote %}
4040
{% endif %}
4141

42-
Este procedimento demonstra como criar um modelo de fluxo de trabalho e um arquivo de metadados. O arquivo de metadados descreve como o modelo é apresentado aos usuários quando estão criando um novo fluxo de trabalho.
42+
This procedure demonstrates how to create a workflow template and metadata file. The metadata file describes how the template is presented to users when they are creating a new workflow.
4343

44-
1. Se já não existir, crie um novo repositório público denominado `.github` na sua organização.
45-
2. Crie um diretório denominado `workflow-templates`.
46-
3. Crie seu novo arquivo de fluxo de trabalho dentro do diretório `workflow-templates`.
44+
1. If it doesn't already exist, create a new public repository named `.github` in your organization.
45+
2. Create a directory named `workflow-templates`.
46+
3. Create your new workflow file inside the `workflow-templates` directory.
4747

48-
Se você precisar referir-se ao branch-padrão de um repositório, você poderá usar o espaço reservado `branch$default`. Quando um fluxo de trabalho é criado usando seu modelo, o espaço reservado será automaticamente substituído pelo nome do branch-padrão do repositório.
48+
If you need to refer to a repository's default branch, you can use the `$default-branch` placeholder. When a workflow is created using your template, the placeholder will be automatically replaced with the name of the repository's default branch.
4949

50-
Por exemplo, este arquivo denominado `octo-organization-ci.yml` demonstra um fluxo de trabalho básico.
50+
For example, this file named `octo-organization-ci.yml` demonstrates a basic workflow.
5151

5252
```yaml
5353
name: Octo Organization CI
@@ -68,7 +68,7 @@ Este procedimento demonstra como criar um modelo de fluxo de trabalho e um arqui
6868
- name: Run a one-line script
6969
run: echo Hello from Octo Organization
7070
```
71-
4. Crie um arquivo de metadados dentro do diretório `workflow-templates`. O arquivo de metadados deve ter o mesmo nome do arquivo de fluxo de trabalho, mas em vez da extensão `.yml`, deve-se adicionar `.properties.json`. Por exemplo, este arquivo denominado `octo-organization-ci.properties.json` contém os metadados para um arquivo de fluxo de trabalho denominado `octo-organization-ci.yml`:
71+
4. 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`:
7272
```yaml
7373
{
7474
"name": "Octo Organization Workflow",
@@ -84,16 +84,16 @@ Este procedimento demonstra como criar um modelo de fluxo de trabalho e um arqui
8484
]
8585
}
8686
```
87-
* `nome` - **Obrigatório.** O nome do modelo de fluxo de trabalho. Isto é exibido na lista de modelos disponíveis.
88-
* `descrição` - **Obrigatória.** A descrição do modelo de fluxo de trabalho. Isto é exibido na lista de modelos disponíveis.
89-
* `iconName` - **Obrigatório.** Define um ícone para a entrada do fluxo de trabalho na lista de modelos. O `iconName` deve ser um ícone SVG com o mesmo nome e deve ser armazenado no diretório `workflow-templates`. Por exemplo, um arquivo SVG denominado `exemplo-icon.svg` é referenciado como `example-icon`.
90-
* `categorias` - **Opcional.** Define a categoria de idioma do fluxo de trabalho. Quando um usuário visualiza os modelos disponíveis, esses modelos que correspondem àao mesmo idioma terão mais destaque. Para obter informações sobre as categorias de idioma disponíveis, consulte https://github.com/github/linguist/blob/master/lib/linguist/languages.yml.
91-
* `filePatterns` - **Opcional.** Permite que o modelo seja usado se o repositório do usuário tiver um arquivo no diretório-raiz que corresponde a uma expressão regular definida.
87+
* `name` - **Required.** The name of the workflow template. This is displayed in the list of available templates.
88+
* `description` - **Required.** The description of the workflow template. This is displayed in the list of available templates.
89+
* `iconName` - **Optional.** Defines an icon for the workflow's entry in the template list. The `iconName` must be an SVG icon of the same name, and must be stored in the `workflow-templates` directory. For example, a SVG file named `example-icon.svg` is referenced as `example-icon`.
90+
* `categories` - **Optional.** Defines the language category of the workflow. When a user views the available templates, those templates that match the same language will feature more prominently. For information on the available language categories, see https://github.com/github/linguist/blob/master/lib/linguist/languages.yml.
91+
* `filePatterns` - **Optional.** Allows the template to be used if the user's repository has a file in its root directory that matches a defined regular expression.
9292

93-
Para adicionar outro modelo de fluxo de trabalho, adicione seus arquivos ao mesmo diretório `workflow-templates`. Por exemplo:
93+
To add another workflow template, add your files to the same `workflow-templates` directory. For example:
9494

95-
![Arquivos do modelo do fluxo de trabalho](/assets/images/help/images/workflow-template-files.png)
95+
![Workflow template files](/assets/images/help/images/workflow-template-files.png)
9696

97-
## Próximas etapas
97+
## Next steps
9898

99-
Para continuar aprendendo sobre {% data variables.product.prodname_actions %}, consulte "[Usando modelos de fluxo de trabalho](/actions/learn-github-actions/using-workflow-templates)".
99+
To continue learning about {% data variables.product.prodname_actions %}, see "[Using workflow templates](/actions/learn-github-actions/using-workflow-templates)."

0 commit comments

Comments
 (0)