Skip to content

Commit f7ed50f

Browse files
authored
New translation batch for cn (github#26271)
* Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * Run script/i18n/lint-translation-files.js --check parsing * 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
1 parent 8f9b7e4 commit f7ed50f

File tree

42 files changed

+462
-171
lines changed

Some content is hidden

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

42 files changed

+462
-171
lines changed

translations/log/cn-resets.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-r
1515
translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md,Listed in localization-support#489
1616
translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md,broken liquid tags
1717
translations/zh-CN/content/actions/learn-github-actions/usage-limits-billing-and-administration.md,broken liquid tags
18+
translations/zh-CN/content/actions/managing-workflow-runs/re-running-workflows-and-jobs.md,parsing error
1819
translations/zh-CN/content/actions/managing-workflow-runs/removing-workflow-artifacts.md,broken liquid tags
1920
translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md,Listed in localization-support#489
2021
translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md,broken liquid tags
@@ -221,6 +222,7 @@ translations/zh-CN/content/rest/overview/other-authentication-methods.md,broken
221222
translations/zh-CN/content/rest/overview/resources-in-the-rest-api.md,Listed in localization-support#489
222223
translations/zh-CN/content/rest/reference/enterprise-admin.md,broken liquid tags
223224
translations/zh-CN/content/search-github/getting-started-with-searching-on-github/about-searching-on-github.md,broken liquid tags
225+
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
224226
translations/zh-CN/content/sponsors/getting-started-with-github-sponsors/about-github-sponsors.md,broken liquid tags
225227
translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/about-github-sponsors-for-open-source-contributors.md,broken liquid tags
226228
translations/zh-CN/content/support/contacting-github-support/creating-a-support-ticket.md,broken liquid tags

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ miniTocMaxHeadingLevel: 3
7373
| <code>concurrency</code> | <code>github, inputs</code> | |
7474
| <code>env</code> | <code>github, secrets, inputs</code> | |
7575
| <code>jobs.&lt;job_id&gt;.concurrency</code> | <code>github, needs, strategy, matrix, inputs</code> | |
76-
| <code>jobs.&lt;job_id&gt;.container</code> | <code>github, needs, strategy, matrix, secrets, inputs</code> | |
76+
| <code>jobs.&lt;job_id&gt;.container</code> | <code>github, needs, strategy, matrix, env, secrets, inputs</code> | |
7777
| <code>jobs.&lt;job_id&gt;.container.credentials</code> | <code>github, needs, strategy, matrix, env, secrets, inputs</code> | |
7878
| <code>jobs.&lt;job_id&gt;.container.env.&lt;env_id&gt;</code> | <code>github, needs, strategy, matrix, job, runner, env, secrets, inputs</code> | |
7979
| <code>jobs.&lt;job_id&gt;.continue-on-error</code> | <code>github, needs, strategy, matrix, inputs</code> | |

translations/zh-CN/content/actions/managing-workflow-runs/re-running-workflows-and-jobs.md

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Re-running workflows and jobs
3-
intro: 'You can re-run a workflow run{% if re-run-jobs %}, all failed jobs in a workflow run, or specific jobs in a workflow run{% endif %} up to 30 days after its initial run.'
3+
intro: You can re-run a workflow run{% if re-run-jobs %}, all failed jobs in a workflow run, or specific jobs in a workflow run{% endif %} up to 30 days after its initial run.
44
permissions: People with write permissions to a repository can re-run workflows in the repository.
55
miniTocMaxHeadingLevel: 3
66
redirect_from:
@@ -28,12 +28,14 @@ Re-running a workflow{% if re-run-jobs %} or jobs in a workflow{% endif %} uses
2828
{% data reusables.repositories.navigate-to-workflow %}
2929
{% data reusables.repositories.view-run %}
3030
{% ifversion fpt or ghes > 3.2 or ghae-issue-4721 or ghec %}
31-
1. 在工作流程的右上角,使用 **Re-run jobs(重新运行作业)**下拉菜单,并选择 **Re-run all jobs(重新运行所有作业)**
31+
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run all jobs**.
3232

33-
If no jobs failed, you will not see the **Re-run jobs** drop-down menu. Instead, click **Re-run all jobs**. ![Rerun checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down.png)
33+
If no jobs failed, you will not see the **Re-run jobs** drop-down menu. Instead, click **Re-run all jobs**.
34+
![Rerun checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down.png)
3435
{% endif %}
3536
{% ifversion ghes < 3.3 or ghae %}
36-
1. 在工作流程的右上角,使用 **Re-run jobs(重新运行作业)**下拉菜单,并选择 **Re-run all jobs(重新运行所有作业)**![重新运行检查下拉菜单](/assets/images/help/repository/rerun-checks-drop-down-updated.png)
37+
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run all jobs**.
38+
![Re-run checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down-updated.png)
3739
{% endif %}
3840

3941
{% endwebui %}
@@ -42,13 +44,13 @@ Re-running a workflow{% if re-run-jobs %} or jobs in a workflow{% endif %} uses
4244

4345
{% data reusables.cli.cli-learn-more %}
4446

45-
要重新运行失败的工作流程运行,请使用 `run rerun` 子命令。 将 `run-id` 替换为您想要重新运行的已失败运行的 ID。 如果您没有指定 `run-id`{% data variables.product.prodname_cli %} 将返回一个交互式菜单,供您选择最近失败的运行。
47+
To re-run a failed workflow run, use the `run rerun` subcommand. Replace `run-id` with the ID of the failed run that you want to re-run. If you don't specify a `run-id`, {% data variables.product.prodname_cli %} returns an interactive menu for you to choose a recent failed run.
4648

4749
```shell
4850
gh run rerun <em>run-id</em>
4951
```
5052

51-
要查看工作流程运行的进度,请使用 `run watch` 子命令,并从交互式列表中选择运行。
53+
To view the progress of the workflow run, use the `run watch` subcommand and select the run from the interactive list.
5254

5355
```shell
5456
gh run watch
@@ -67,13 +69,18 @@ If any jobs in a workflow run failed, you can re-run just the jobs that failed.
6769
{% data reusables.repositories.actions-tab %}
6870
{% data reusables.repositories.navigate-to-workflow %}
6971
{% data reusables.repositories.view-run %}
70-
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run failed jobs**. ![Re-run failed jobs drop-down menu](/assets/images/help/repository/rerun-failed-jobs-drop-down.png)
72+
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run failed jobs**.
73+
![Re-run failed jobs drop-down menu](/assets/images/help/repository/rerun-failed-jobs-drop-down.png)
7174

7275
{% endwebui %}
7376

7477
{% cli %}
7578

76-
You cannot re-run all failed jobs through the {% data variables.product.prodname_cli %} at this time. Instead, use the {% data variables.product.product_name %} web browser interface.
79+
To re-run failed jobs in a workflow run, use the `run rerun` subcommand with the `--failed` flag. Replace `run-id` with the ID of the run for which you want to re-run failed jobs. If you don't specify a `run-id`, {% data variables.product.prodname_cli %} returns an interactive menu for you to choose a recent failed run.
80+
81+
```shell
82+
gh run rerun <em>run-id</em> --failed
83+
```
7784

7885
{% endcli %}
7986

@@ -87,15 +94,21 @@ When you re-run a specific job in a workflow, a new workflow run will start for
8794
{% data reusables.repositories.actions-tab %}
8895
{% data reusables.repositories.navigate-to-workflow %}
8996
{% data reusables.repositories.view-run %}
90-
1. Next to the job that you want to re-run, click {% octicon "sync" aria-label="The re-run icon" %}. ![Re-run selected job](/assets/images/help/repository/re-run-selected-job.png)
97+
1. Next to the job that you want to re-run, click {% octicon "sync" aria-label="The re-run icon" %}.
98+
![Re-run selected job](/assets/images/help/repository/re-run-selected-job.png)
9199

92-
Alternatively, click on a job to view the log. In the log, click {% octicon "sync" aria-label="The re-run icon" %}. ![Re-run selected job](/assets/images/help/repository/re-run-single-job-from-log.png)
100+
Alternatively, click on a job to view the log. In the log, click {% octicon "sync" aria-label="The re-run icon" %}.
101+
![Re-run selected job](/assets/images/help/repository/re-run-single-job-from-log.png)
93102

94103
{% endwebui %}
95104

96105
{% cli %}
97106

98-
You cannot re-run a single job through the {% data variables.product.prodname_cli %} at this time. Instead, use the {% data variables.product.product_name %} browser interface.
107+
To re-run a specific job in a workflow run, use the `run rerun` subcommand with the `--job` flag. Replace `job-id` with the ID of the job that you want to re-run.
108+
109+
```shell
110+
gh run rerun --job <em>job-id</em>
111+
```
99112

100113
{% endcli %}
101114

@@ -111,9 +124,11 @@ You can view the results from your previous attempts at running a workflow. You
111124
{% data reusables.repositories.navigate-to-workflow %}
112125
{% data reusables.repositories.view-run %}
113126
{%- if re-run-jobs %}
114-
1. Any previous run attempts are shown in the **Latest** drop-down menu. ![Previous run attempts](/assets/images/help/repository/previous-run-attempts.png)
127+
1. Any previous run attempts are shown in the **Latest** drop-down menu.
128+
![Previous run attempts](/assets/images/help/repository/previous-run-attempts.png)
115129
{%- else %}
116-
1. Any previous run attempts are shown in the left pane. ![Rerun workflow](/assets/images/help/settings/actions-review-workflow-rerun.png)
130+
1. Any previous run attempts are shown in the left pane.
131+
![Rerun workflow](/assets/images/help/settings/actions-review-workflow-rerun.png)
117132
{%- endif %}
118133
1. Click an entry to view its results.
119134

translations/zh-CN/content/actions/managing-workflow-runs/skipping-workflow-runs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ versions:
66
ghes: '*'
77
ghae: '*'
88
ghec: '*'
9-
shortTitle: Skip workflow runs
9+
shortTitle: 跳过工作流程运行
1010
---
1111

1212
{% data reusables.actions.enterprise-beta %}
1313
{% data reusables.actions.enterprise-github-hosted-runners %}
1414

15-
Workflows that would otherwise be triggered using `on: push` or `on: pull_request` won't be triggered if you add any of the following strings to the commit message in a push, or the HEAD commit of a pull request:
15+
本来会触发使用 `on: push` `on: pull_request` 的工作流程,如果您将以下任何字符串添加到推送中的提交消息或者拉取请求的 HEAD 提交,则不会触发:
1616

1717
* `[skip ci]`
1818
* `[ci skip]`

translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ versions:
6666

6767
{% note %}
6868

69-
**Note**: When you download the log archive for a workflow that was partially re-run, the archive only includes the jobs that were re-run. To get a complete set of logs for jobs that were run from a workflow, you must download the log archives for the previous run attempts that ran the other jobs.
69+
**注意**:下载部分重新运行的工作流程的日志存档时,存档仅包括已重新运行的作业。 若要获取从工作流程运行的作业的完整日志集,必须下载运行其他作业的上一次运行尝试的日志存档。
7070

7171
{% endnote %}
7272

translations/zh-CN/content/actions/publishing-packages/publishing-docker-images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
{% ifversion fpt or ghec %}
132132
{% data reusables.package_registry.publish-docker-image %}
133133

134-
The above workflow is triggered by a push to the "release" branch. 它会检出 GitHub 仓库,并使用 `login-action` 登录到 {% data variables.product.prodname_container_registry %}。 然后,它将提取 Docker 映像的标签和标记。 最后,它使用 `build-push-action` 操作来构建映像并在 {% data variables.product.prodname_container_registry %} 上发布。
134+
上述工作流程通过推送到“发行版”分支触发。 它会检出 GitHub 仓库,并使用 `login-action` 登录到 {% data variables.product.prodname_container_registry %}。 然后,它将提取 Docker 映像的标签和标记。 最后,它使用 `build-push-action` 操作来构建映像并在 {% data variables.product.prodname_container_registry %} 上发布。
135135

136136
{% else %}
137137
```yaml{:copy}

translations/zh-CN/content/actions/security-guides/automatic-token-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ shortTitle: 自动令牌身份验证
2323

2424
当您启用 {% data variables.product.prodname_actions %} 时,{% data variables.product.prodname_dotcom %} 在您的仓库中安装 {% data variables.product.prodname_github_app %}。 `GITHUB_TOKEN` 密码是一种 {% data variables.product.prodname_github_app %} 安装访问令牌。 您可以使用安装访问令牌代表仓库中安装的 {% data variables.product.prodname_github_app %} 进行身份验证。 令牌的权限仅限于包含您的工作流程的仓库。 更多信息请参阅“[`GITHUB_TOKEN`](#permissions-for-the-github_token) 的权限”。
2525

26-
在每个作业开始之前, {% data variables.product.prodname_dotcom %} 将为作业提取安装访问令牌。 令牌在作业完成后过期。
26+
在每个作业开始之前, {% data variables.product.prodname_dotcom %} 将为作业提取安装访问令牌。 {% data reusables.actions.github-token-expiration %}
2727

2828
令牌在 `github.token` 上下文中也可用。 更多信息请参阅“[上下文](/actions/learn-github-actions/contexts#github-context)”。
2929

translations/zh-CN/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,11 @@ restore-keys: |
234234
## 使用限制和收回政策
235235

236236
{% data variables.product.prodname_dotcom %} 将删除 7 天内未被访问的任何缓存条目。 There is no limit on the number of caches you can store, but the total size of all caches in a repository is limited to 10 GB. If you exceed this limit, {% data variables.product.prodname_dotcom %} will save your cache but will begin evicting caches until the total size is less than 10 GB.
237+
238+
{% if actions-cache-management %}
239+
240+
## Managing caches
241+
242+
You can use the {% data variables.product.product_name %} REST API to manage your caches. At present, you can use the API to see your cache usage, with more functionality expected in future updates. For more information, see the "[Actions](/rest/reference/actions#cache)" REST API documentation.
243+
244+
{% endif %}

translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Use `on.workflow_call` to define the inputs and outputs for a reusable workflow.
6464

6565
When using the `workflow_call` keyword, you can optionally specify inputs that are passed to the called workflow from the caller workflow. For more information about the `workflow_call` keyword, see "[Events that trigger workflows](/actions/learn-github-actions/events-that-trigger-workflows#workflow-reuse-events)."
6666

67-
In addition to the standard input parameters that are available, `on.workflow_call.inputs` requires a `type` parameter. For more information, see [`on.workflow_call.inputs.<input_id>.type`](#onworkflow_callinputsinput_idtype).
67+
In addition to the standard input parameters that are available, `on.workflow_call.inputs` requires a `type` parameter. 更多信息请参阅 [`on.workflow_call.inputs.<input_id>.type`](#onworkflow_callinputsinput_idtype)
6868

6969
If a `default` parameter is not set, the default value of the input is `false` for a boolean, `0` for a number, and `""` for a string.
7070

@@ -714,6 +714,12 @@ steps:
714714

715715
如果超时超过运行器的作业执行时限,作业将在达到执行时限时取消。 For more information about job execution time limits, see {% ifversion fpt or ghec or ghes %}"[Usage limits and billing](/actions/reference/usage-limits-billing-and-administration#usage-limits)" for {% data variables.product.prodname_dotcom %}-hosted runners and {% endif %}"[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners/#usage-limits){% ifversion fpt or ghec or ghes %}" for self-hosted runner usage limits.{% elsif ghae %}."{% endif %}
716716

717+
{% note %}
718+
719+
**Note:** {% data reusables.actions.github-token-expiration %} For self-hosted runners, the token may be the limiting factor if the job timeout is greater than 24 hours. For more information on the `GITHUB_TOKEN`, see "[About the `GITHUB_TOKEN` secret](/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)."
720+
721+
{% endnote %}
722+
717723
## `jobs.<job_id>.strategy`
718724

719725
{% data reusables.actions.jobs.section-using-a-build-matrix-for-your-jobs-strategy %}

translations/zh-CN/content/admin/configuration/configuring-your-enterprise/about-enterprise-configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ shortTitle: 关于配置
2323
{% endif %}
2424

2525
{% ifversion ghae %}
26+
To get started with {% data variables.product.product_name %}, you first need to deploy {% data variables.product.product_name %}. For more information, see "[Deploying {% data variables.product.product_name %}](/admin/configuration/configuring-your-enterprise/deploying-github-ae)."
27+
2628
第一次访问您的企业时,您将完成初始配置,以便 {% data variables.product.product_name %} 可供使用。 初始配置包括连接您的企业与身份提供程序 (IdP) 连接、通过 SAML SSO 进行身份验证、配置企业中仓库和组织的策略,以及为出站电子邮件配置 SMTP。 更多信息请参阅“[初始化 {% data variables.product.prodname_ghe_managed %}](/admin/configuration/initializing-github-ae)。”
2729

2830
稍后,您可以使用站点管理员仪表板和企业设置进一步配置企业、管理用户、组织和仓库,并设置可降低风险和提高质量的策略。

0 commit comments

Comments
 (0)