Skip to content

Commit

Permalink
Revert broken cn translated file to english (github#17167)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessayuenn committed Jan 6, 2021
1 parent dc5a9b6 commit faa4ba5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions translations/zh-CN/content/actions/reference/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 参考
intro: '使用 GitHub 托管的运行器和身份验证创建工作流程的参考文档。'
title: Reference
intro: 'Reference documentation for creating workflows, using GitHub-hosted runners, and authentication.'
redirect_from:
- /actions/configuring-and-managing-workflows/using-variables-and-secrets-in-a-workflow
versions:
Expand All @@ -11,46 +11,46 @@ versions:
{% data reusables.actions.enterprise-beta %}
{% data reusables.actions.enterprise-github-hosted-runners %}

### 工作流程语法
### Workflow syntax

工作流程文件以 YAML 编写。 在 YAML 工作流程文件中,您可以使用表达式语法来评估上下文信息、文字、运算符和函数。 上下文信息包括工作流程、环境变量、密码和触发工作流程的事件。 当您在工作流程步骤中使用 [`run`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun) 运行 shell 命令时,您可以使用特定的工作流程命令语法来设置环境变量、设置后续步骤的输出参数,以及设置错误或调试信息。
The workflow file is written in YAML. In the YAML workflow file, you can use expression syntax to evaluate contextual information, literals, operators, and functions. Contextual information includes workflow, environment variables, secrets, and the events that triggered the workflow. When you use [`run`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun) in a workflow step to run shell commands, you can use specific workflow command syntax to set environment variables, set output parameters for subsequent steps, and set error or debug messages.

{% link_in_list /workflow-syntax-for-github-actions %}
{% link_in_list /context-and-expression-syntax-for-github-actions %}
{% link_in_list /workflow-commands-for-github-actions %}

### 事件
### Events

您可以配置工作流和在发生特定 GitHub 事件时运行、在计划的时间运行、手动运行、手动或者当 GitHub 外部事件发生时运行。
You can configure workflows to run when specific GitHub events occur, at a scheduled time, manually, or when events outside of GitHub occur.

{% link_in_list /events-that-trigger-workflows %}

### 身份验证和密码
### Authentication and secrets

{% data variables.product.prodname_dotcom %} 提供一个令牌,可用于代表 {% data variables.product.prodname_actions %} 进行身份验证。 您还可以将敏感信息存储在您的组织{% if currentversion == "free-proteam@latest" or currentversion ver_gt "enterprise-server@3. %}、仓库或者环境{% else %} 或仓库{% endif %} 中。 {% data variables.product.prodname_dotcom %} 对所有密码加密。
{% data variables.product.prodname_dotcom %} provides a token that you can use to authenticate on behalf of {% data variables.product.prodname_actions %}. You can also store sensitive information as a secret in your organization{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" %}, repository, or environments{% else %} or repository{% endif %}. {% data variables.product.prodname_dotcom %} encrypts all secrets.

{% link_in_list /authentication-in-a-workflow %}
{% link_in_list /encrypted-secrets %}

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" %}
### 环境
### Environments

工作流程作业可以引用具有保护规则或环境特定机密的环境。
Workflow jobs can reference environments that have protection rules or environment-specific secrets.

{% link_in_list /environments %}
{% endif %}

### {% data variables.product.prodname_dotcom %} 托管的运行器
### {% data variables.product.prodname_dotcom %}-hosted runners

GitHub 提供托管的虚拟机器来运行工作流程。 虚拟机包含一个环境,其中包含供 GitHub Actions 使用的工具、软件包和环境变量。
GitHub offers hosted virtual machines to run workflows. The virtual machine contains an environment with tools, packages, and environment variables for GitHub Actions to use.

{% link_in_list /environment-variables %}
{% link_in_list /specifications-for-github-hosted-runners %}

{% if currentVersion == "free-pro-team@latest" %}
### 管理
### Administration

{% data variables.product.prodname_dotcom %} 托管的运行器上运行工作流程时,存在使用限制和潜在的使用费用。 您也可以禁用或限制 {% data variables.product.prodname_actions %} 在仓库和组织中的使用。
When you run workflows on {% data variables.product.prodname_dotcom %}-hosted runners, there are usage limits and potential usage charges. You can also disable or restrict the usage of {% data variables.product.prodname_actions %} in a repository and organization.

{% link_in_list /usage-limits-billing-and-administration %}

Expand Down

0 comments on commit faa4ba5

Please sign in to comment.