Skip to content

Commit 8dd4b7c

Browse files
docubotrsese
andauthored
New translation batch for cn (github#27156)
* Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * Run script/i18n/lint-translation-files.js --check rendering * run script/i18n/reset-files-with-broken-liquid-tags.js --language=cn * run script/i18n/reset-known-broken-translation-files.js * Check in cn CSV report Co-authored-by: Robert Sese <[email protected]>
1 parent 16d4062 commit 8dd4b7c

File tree

116 files changed

+1896
-1437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1896
-1437
lines changed

translations/log/cn-resets.csv

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-mach
5353
translations/zh-CN/content/admin/github-actions/advanced-configuration-and-troubleshooting/backing-up-and-restoring-github-enterprise-server-with-github-actions-enabled.md,broken liquid tags
5454
translations/zh-CN/content/admin/github-actions/advanced-configuration-and-troubleshooting/index.md,broken liquid tags
5555
translations/zh-CN/content/admin/github-actions/advanced-configuration-and-troubleshooting/troubleshooting-github-actions-for-your-enterprise.md,broken liquid tags
56-
translations/zh-CN/content/admin/github-actions/advanced-configuration-and-troubleshooting/using-a-staging-environment.md,broken liquid tags
5756
translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/enabling-github-actions-with-amazon-s3-storage.md,broken liquid tags
5857
translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/enabling-github-actions-with-azure-blob-storage.md,broken liquid tags
5958
translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/enabling-github-actions-with-minio-gateway-for-nas-storage.md,broken liquid tags
@@ -72,14 +71,11 @@ translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-
7271
translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access.md,broken liquid tags
7372
translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/using-the-latest-version-of-the-official-bundled-actions.md,broken liquid tags
7473
translations/zh-CN/content/admin/github-actions/using-github-actions-in-github-ae/index.md,broken liquid tags
75-
translations/zh-CN/content/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-saml.md,broken liquid tags
76-
translations/zh-CN/content/admin/identity-and-access-management/managing-iam-for-your-enterprise/configuring-saml-single-sign-on-for-your-enterprise.md,broken liquid tags
77-
translations/zh-CN/content/admin/identity-and-access-management/managing-iam-for-your-enterprise/configuring-user-provisioning-for-your-enterprise.md,broken liquid tags
78-
translations/zh-CN/content/admin/identity-and-access-management/managing-iam-for-your-enterprise/index.md,broken liquid tags
79-
translations/zh-CN/content/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/about-enterprise-managed-users.md,broken liquid tags
80-
translations/zh-CN/content/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/configuring-scim-provisioning-for-enterprise-managed-users-with-okta.md,broken liquid tags
81-
translations/zh-CN/content/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/configuring-scim-provisioning-for-enterprise-managed-users.md,broken liquid tags
82-
translations/zh-CN/content/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/managing-team-memberships-with-identity-provider-groups.md,broken liquid tags
74+
translations/zh-CN/content/admin/identity-and-access-management/using-enterprise-managed-users-and-saml-for-iam/about-enterprise-managed-users.md,broken liquid tags
75+
translations/zh-CN/content/admin/identity-and-access-management/using-enterprise-managed-users-and-saml-for-iam/configuring-scim-provisioning-for-enterprise-managed-users-with-okta.md,broken liquid tags
76+
translations/zh-CN/content/admin/identity-and-access-management/using-enterprise-managed-users-and-saml-for-iam/configuring-scim-provisioning-for-enterprise-managed-users.md,broken liquid tags
77+
translations/zh-CN/content/admin/identity-and-access-management/using-enterprise-managed-users-and-saml-for-iam/managing-team-memberships-with-identity-provider-groups.md,broken liquid tags
78+
translations/zh-CN/content/admin/identity-and-access-management/using-saml-for-enterprise-iam/configuring-user-provisioning-for-your-enterprise.md,broken liquid tags
8379
translations/zh-CN/content/admin/index.md,broken liquid tags
8480
translations/zh-CN/content/admin/installation/setting-up-a-github-enterprise-server-instance/installing-github-enterprise-server-on-aws.md,broken liquid tags
8581
translations/zh-CN/content/admin/overview/about-enterprise-accounts.md,Listed in localization-support#489
@@ -227,7 +223,6 @@ translations/zh-CN/content/issues/using-labels-and-milestones-to-track-work/mana
227223
translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization.md,broken liquid tags
228224
translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md,broken liquid tags
229225
translations/zh-CN/content/organizations/managing-membership-in-your-organization/can-i-create-accounts-for-people-in-my-organization.md,broken liquid tags
230-
translations/zh-CN/content/organizations/managing-membership-in-your-organization/inviting-users-to-join-your-organization.md,broken liquid tags
231226
translations/zh-CN/content/organizations/managing-membership-in-your-organization/reinstating-a-former-member-of-your-organization.md,broken liquid tags
232227
translations/zh-CN/content/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization.md,broken liquid tags
233228
translations/zh-CN/content/organizations/managing-organization-settings/managing-the-default-branch-name-for-repositories-in-your-organization.md,broken liquid tags
@@ -268,7 +263,7 @@ translations/zh-CN/content/rest/overview/other-authentication-methods.md,broken
268263
translations/zh-CN/content/rest/overview/resources-in-the-rest-api.md,Listed in localization-support#489
269264
translations/zh-CN/content/rest/packages.md,broken liquid tags
270265
translations/zh-CN/content/search-github/getting-started-with-searching-on-github/about-searching-on-github.md,broken liquid tags
271-
translations/zh-CN/content/search-github/getting-started-with-searching-on-github/enabling-githubcom-repository-search-from-your-private-enterprise-environment.md,rendering error
266+
translations/zh-CN/content/search-github/getting-started-with-searching-on-github/enabling-githubcom-repository-search-from-your-private-enterprise-environment.md,broken liquid tags
272267
translations/zh-CN/content/sponsors/getting-started-with-github-sponsors/about-github-sponsors.md,broken liquid tags
273268
translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/about-github-sponsors-for-open-source-contributors.md,broken liquid tags
274269
translations/zh-CN/content/support/contacting-github-support/creating-a-support-ticket.md,broken liquid tags

translations/zh-CN/content/actions/creating-actions/creating-a-composite-action.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ shortTitle: 组合操作
8282
- run: echo Hello ${{ inputs.who-to-greet }}.
8383
shell: bash
8484
- id: random-number-generator
85-
run: echo "::set-output name=random-id::$(echo $RANDOM)"
85+
run: echo "::set-output name=random-number::$(echo $RANDOM)"
8686
shell: bash
8787
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
8888
shell: bash

translations/zh-CN/content/actions/learn-github-actions/understanding-github-actions.md

Lines changed: 5 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ topics:
5050

5151
### 工作流程
5252

53-
工作流程是一个可配置的自动化过程,它将运行一个或多个作业。 工作流程由签入到存储库的 YAML 文件定义,并在存储库中的事件触发时运行,也可以手动触发,或按定义的时间表触发。
54-
55-
一个存储库中可以有多个工作流程,每个工作流程可以执行一组不同的步骤。 例如,您可以有一个工作流程来构建和测试拉取请求,另一个工作流程用于在每次创建发布时部署应用程序,还有一个工作流程在每次有人打开新议题时添加标签。
53+
{% data reusables.actions.about-workflows-long %}
5654

5755
{% ifversion fpt or ghes > 3.3 or ghae-issue-4757 or ghec %}您可以在另一个工作流中引用工作流程,请参阅“[重用工作流程](/actions/learn-github-actions/reusing-workflows)”。{% endif %}
5856

@@ -86,168 +84,7 @@ _操作_是 {% data variables.product.prodname_actions %} 平台的自定义应
8684

8785
{% data reusables.actions.about-runners %} 每个运行器一次可以运行一个作业。 {% ifversion ghes or ghae %} 您必须为 {% data variables.product.product_name %} 托管自己的运行器。 {% elsif fpt or ghec %}{% data variables.product.company_short %} 提供 Ubuntu Linux、Microsoft Windows 和 macOS 运行器来运行您的工作流程;每个工作流程运行都在新预配的全新虚拟机中执行。 如果您需要不同的操作系统或需要特定的硬件配置,则可以托管自己的运行器。{% endif %} 有关{% ifversion fpt or ghec %} 自托管运行器{% endif %} 的更多信息,请参阅“[托管您自己的运行器](/actions/hosting-your-own-runners)”。
8886

89-
## 创建示例工作流程
90-
91-
{% data variables.product.prodname_actions %} 使用 YAML 语法来定义工作流程。 每个工作流程都作为单独的 YAML 文件存储在代码存储库中的目录 `.github/workflows` 下。
92-
93-
您可以在仓库中创建示例工作流程,只要推送代码,该工作流程就会自动触发一系列命令。 在此工作流程中,{% data variables.product.prodname_actions %} 检出推送的代码,安装软件依赖项,并运行 `-v`
94-
95-
1. 在您的仓库中,创建 `.github/workflows/` 目录来存储工作流程文件。
96-
1.`.github/workflows/` 目录中,创建一个名为 `learn-github-actions.yml` 的新文件并添加以下代码。
97-
98-
```yaml
99-
name: learn-github-actions
100-
on: [push]
101-
jobs:
102-
check-bats-version:
103-
runs-on: ubuntu-latest
104-
steps:
105-
- uses: {% data reusables.actions.action-checkout %}
106-
- uses: {% data reusables.actions.action-setup-node %}
107-
with:
108-
node-version: '14'
109-
- run: npm install -g bats
110-
- run: bats -v
111-
```
112-
1. 提交这些更改并将其推送到您的 {% data variables.product.prodname_dotcom %} 仓库。
113-
114-
您的新 {% data variables.product.prodname_actions %} 工作流程文件现在安装在您的仓库中,每次有人推送更改到仓库时都会自动运行。 有关工作流程的执行历史记录的详细信息,请参阅“[查看工作流程的活动](/actions/learn-github-actions/introduction-to-github-actions#viewing-the-workflows-activity)”。
115-
116-
## 了解工作流程文件
117-
118-
为帮助您了解如何使用 YAML 语法来创建工作流程文件,本节解释介绍示例的每一行:
119-
120-
<table>
121-
<tr>
122-
<td>
123-
124-
```yaml
125-
name: learn-github-actions
126-
```
127-
</td>
128-
<td>
129-
<em>可选</em> - 将出现在 {% data variables.product.prodname_dotcom %} 仓库的 Actions(操作)选项卡中的工作流程名称。
130-
</td>
131-
</tr>
132-
<tr>
133-
<td>
134-
135-
```yaml
136-
on: [push]
137-
```
138-
</td>
139-
<td>
140-
指定此工作流程的触发器。 此示例使用<code>推送</code>事件,因此每次有人将更改推送到存储库或合并拉取请求时,都会触发工作流程运行。 这是由推送到每个分支触发的;有关仅在推送到特定分支、路径或标记时运行的语法示例,请参阅“<a href="https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore">{% data variables.product.prodname_actions %} 的工作流程语法”。</a>
141-
</td>
142-
</tr>
143-
<tr>
144-
<td>
145-
146-
```yaml
147-
jobs:
148-
```
149-
</td>
150-
<td>
151-
将 <code>learn-github-actions</code> 工作流程中运行的所有作业组合在一起。
152-
</td>
153-
</tr>
154-
<tr>
155-
<td>
156-
157-
```yaml
158-
check-bats-version:
159-
```
160-
</td>
161-
<td>
162-
定义名为 <code>check-bats-version</code> 的作业。 子键将定义作业的属性。
163-
</td>
164-
</tr>
165-
<tr>
166-
<td>
167-
168-
```yaml
169-
runs-on: ubuntu-latest
170-
```
171-
</td>
172-
<td>
173-
将作业配置为在最新版本的 Ubuntu Linux 运行器上运行。 这意味着该作业将在 GitHub 托管的新虚拟机上执行。 有关使用其他运行器的语法示例,请参阅<a href="https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on">“{% data variables.product.prodname_actions %} 的工作流程语法”</a>。
174-
</td>
175-
</tr>
176-
<tr>
177-
<td>
178-
179-
```yaml
180-
steps:
181-
```
182-
</td>
183-
<td>
184-
将 <code>check-bats-version</code> 作业中运行的所有步骤组合在一起。 此部分下嵌套的每项都是一个单独的操作或 shell 脚本。
185-
</td>
186-
</tr>
187-
<tr>
188-
<td>
189-
190-
```yaml
191-
- uses: {% data reusables.actions.action-checkout %}
192-
```
193-
</td>
194-
<td>
195-
<code>uses</code> 关键字指定此步骤将运行 <code>actions/checkout</code> 操作的 <code>v3</code>。 这是一个将存储库签出到运行器上的操作,允许您对代码(如生成和测试工具)运行脚本或其他操作。 每当工作流程将针对存储库的代码运行时,都应使用签出操作。
196-
</td>
197-
</tr>
198-
<tr>
199-
<td>
200-
201-
```yaml
202-
- uses: {% data reusables.actions.action-setup-node %}
203-
with:
204-
node-version: '14'
205-
```
206-
</td>
207-
<td>
208-
此步骤使用 <code>{% data reusables.actions.action-setup-node %}</code> 操作来安装指定版本的 Node.js(此示例使用 v14)。 这会将 <code>node</code> 和 <code>npm</code> 命令放在 <code>PATH</code>中。
209-
</td>
210-
</tr>
211-
<tr>
212-
<td>
213-
214-
```yaml
215-
- run: npm install -g bats
216-
```
217-
</td>
218-
<td>
219-
<code>run</code> 关键字指示作业在运行器上执行命令。 在这种情况下,使用 <code>npm</code> 来安装 <code>bats</code> 软件测试包。
220-
</td>
221-
</tr>
222-
<tr>
223-
<td>
224-
225-
```yaml
226-
- run: bats -v
227-
```
228-
</td>
229-
<td>
230-
最后,您将运行 <code>bats</code> 命令,并且带有输出软件版本的参数。
231-
</td>
232-
</tr>
233-
</table>
234-
235-
### 可视化工作流程文件
236-
237-
在此关系图中,您可以看到刚刚创建的工作流程文件,以及 {% data variables.product.prodname_actions %} 组件在层次结构中的组织方式。 每个步骤执行单个操作或 shell 脚本。 步骤 1 和 2 运行操作,步骤 3 和 4 运行 shell 脚本。 要查找更多为工作流预构建的操作,请参阅“[查找和自定义操作](/actions/learn-github-actions/finding-and-customizing-actions)”。
238-
239-
![工作流程概述](/assets/images/help/images/overview-actions-event.png)
240-
241-
## 查看工作流程的活动
242-
243-
工作流程开始运行后,您可以查看运行进度的可视化图表,并在 {% data variables.product.prodname_dotcom %} 上查看每个步骤的活动。
244-
245-
{% data reusables.repositories.navigate-to-repo %}
246-
1. 在仓库名称下,单击 **Actions(操作)**。 ![导航到仓库](/assets/images/help/images/learn-github-actions-repository.png)
247-
1. 在左侧边栏中,单击您想要查看的工作流程。 ![工作流程结果的屏幕截图](/assets/images/help/images/learn-github-actions-workflow.png)
248-
1. 在“Workflow runs(工作流程运行)”下,单击您想要查看的运行的名称。 ![工作流程运行的屏幕截图](/assets/images/help/images/learn-github-actions-run.png)
249-
1. 在 **Jobs(作业)**下或可视化图中,单击您要查看的作业。 ![选择作业](/assets/images/help/images/overview-actions-result-navigate.png)
250-
1. 查看每个步骤的结果。 ![工作流程运行详细信息的屏幕截图](/assets/images/help/images/overview-actions-result-updated-2.png)
87+
{% data reusables.actions.workflow-basic-example-and-explanation %}
25188

25289
## 后续步骤
25390

@@ -263,7 +100,8 @@ _操作_是 {% data variables.product.prodname_actions %} 平台的自定义应
263100

264101
{% data reusables.actions.contacting-support %}
265102

103+
{% ifversion ghec or ghes or ghae %}
266104
## 延伸阅读
267105

268-
{% ifversion ghec or ghes or ghae %}
269-
- "[关于企业的 {% data variables.product.prodname_actions %}](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises)"{% endif %}
106+
- "[关于企业的 {% data variables.product.prodname_actions %}](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises)"
107+
{% endif %}

0 commit comments

Comments
 (0)