Skip to content

Commit d7bd70b

Browse files
authored
Merge pull request github#18196 from github/repo-sync
repo sync
2 parents 2e042ce + 74aefb2 commit d7bd70b

File tree

39 files changed

+195
-111
lines changed

39 files changed

+195
-111
lines changed

translations/log/cn-resets.csv

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-r
1616
translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md,Listed in localization-support#489
1717
translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md,broken liquid tags
1818
translations/zh-CN/content/actions/learn-github-actions/usage-limits-billing-and-administration.md,broken liquid tags
19-
translations/zh-CN/content/actions/managing-workflow-runs/re-running-workflows-and-jobs.md,rendering error
2019
translations/zh-CN/content/actions/managing-workflow-runs/removing-workflow-artifacts.md,broken liquid tags
2120
translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md,Listed in localization-support#489
2221
translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md,broken liquid tags
@@ -345,14 +344,14 @@ translations/zh-CN/data/reusables/dependabot/dependabot-alerts-dependency-graph-
345344
translations/zh-CN/data/reusables/dependabot/enterprise-enable-dependabot.md,broken liquid tags
346345
translations/zh-CN/data/reusables/dotcom_billing/downgrade-org-to-free.md,broken liquid tags
347346
translations/zh-CN/data/reusables/enterprise-accounts/emu-password-reset-session.md,broken liquid tags
348-
translations/zh-CN/data/reusables/enterprise-accounts/emu-short-summary.md,rendering error
347+
translations/zh-CN/data/reusables/enterprise-accounts/emu-short-summary.md,broken liquid tags
349348
translations/zh-CN/data/reusables/enterprise-licensing/about-license-sync.md,broken liquid tags
350349
translations/zh-CN/data/reusables/enterprise-licensing/you-can-sync-for-a-combined-view.md,broken liquid tags
351350
translations/zh-CN/data/reusables/enterprise_installation/hardware-considerations-all-platforms.md,broken liquid tags
352351
translations/zh-CN/data/reusables/enterprise_installation/hardware-rec-table.md,broken liquid tags
353352
translations/zh-CN/data/reusables/enterprise_installation/upgrade-hardware-requirements.md,broken liquid tags
354353
translations/zh-CN/data/reusables/enterprise_management_console/badge_indicator.md,broken liquid tags
355-
translations/zh-CN/data/reusables/gated-features/enterprise-accounts.md,rendering error
354+
translations/zh-CN/data/reusables/gated-features/enterprise-accounts.md,broken liquid tags
356355
translations/zh-CN/data/reusables/gated-features/packages.md,broken liquid tags
357356
translations/zh-CN/data/reusables/gated-features/secret-scanning.md,broken liquid tags
358357
translations/zh-CN/data/reusables/getting-started/actions.md,broken liquid tags
@@ -373,9 +372,9 @@ translations/zh-CN/data/reusables/repositories/deleted_forks_from_private_reposi
373372
translations/zh-CN/data/reusables/repositories/enable-security-alerts.md,broken liquid tags
374373
translations/zh-CN/data/reusables/repositories/github-reviews-security-advisories.md,broken liquid tags
375374
translations/zh-CN/data/reusables/repositories/select-marketplace-apps.md,broken liquid tags
376-
translations/zh-CN/data/reusables/saml/saml-session-oauth.md,rendering error
375+
translations/zh-CN/data/reusables/saml/saml-session-oauth.md,broken liquid tags
377376
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,Listed in localization-support#489
378-
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,rendering error
377+
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,broken liquid tags
379378
translations/zh-CN/data/reusables/scim/after-you-configure-saml.md,broken liquid tags
380379
translations/zh-CN/data/reusables/secret-scanning/enterprise-enable-secret-scanning.md,broken liquid tags
381380
translations/zh-CN/data/reusables/security-advisory/link-browsing-advisory-db.md,broken liquid tags

translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-the-default-branch-name-for-your-repositories.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ topics:
1111
redirect_from:
1212
- /github/setting-up-and-managing-your-github-user-account/managing-the-default-branch-name-for-your-repositories
1313
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories
14+
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories
1415
shortTitle: Manage default branch name
1516
---
1617
## About management of the default branch name

translations/zh-CN/content/actions/creating-actions/metadata-syntax-for-github-actions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ runs:
369369
```
370370
{% endif %}
371371

372+
#### `runs.steps[*].continue-on-error`
373+
374+
**Optional** Prevents the action from failing when a step fails. Set to `true` to allow the action to pass when this step fails.
375+
372376
## 用于 Docker 容器操作的 `runs`
373377

374378
**必要** 配置用于 Docker 容器操作的图像。
Lines changed: 52 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
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.
2+
title: 重新运行工作流程和作业
3+
intro: '您可以工作流程运行初始运行后最长 30 天内重新运行工作流程运行{% if re-run-jobs %}、工作流程运行中所有失败的作业或工作流程运行中的特定作业{% endif %}'
44
permissions: People with write permissions to a repository can re-run workflows in the repository.
55
miniTocMaxHeadingLevel: 3
66
redirect_from:
@@ -15,11 +15,11 @@ versions:
1515
{% data reusables.actions.enterprise-beta %}
1616
{% data reusables.actions.enterprise-github-hosted-runners %}
1717

18-
## About re-running workflows and jobs
18+
## 关于重新运行工作流程和作业
1919

20-
Re-running a workflow{% if re-run-jobs %} or jobs in a workflow{% endif %} uses the same `GITHUB_SHA` (commit SHA) and `GITHUB_REF` (Git ref) of the original event that triggered the workflow run. You can re-run a workflow{% if re-run-jobs %} or jobs in a workflow{% endif %} for up to 30 days after the initial run.
20+
重新运行工作流程{% if re-run-jobs %} 或工作流程中的作业{% endif %} 会使用触发工作流程运行的原始事件的 `GITHUB_SHA`(提交 SHA)和 `GITHUB_REF` (Git ref)You can re-run a workflow{% if re-run-jobs %} or jobs in a workflow{% endif %} for up to 30 days after the initial run.{% if debug-reruns %} When you re-run a workflow or jobs in a workflow, you can enable debug logging for the re-run. This will enable runner diagnostic logging and step debug logging for the re-run. For more information about debug logging, see "[Enabling debug logging](/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging)."{% endif %}
2121

22-
## Re-running all the jobs in a workflow
22+
## 重新运行工作流程中的所有作业
2323

2424
{% webui %}
2525

@@ -28,29 +28,37 @@ 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.4 or ghae-issue-4721 or ghec %}
31-
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run all jobs**.
31+
1. 在工作流程的右上角,使用 **Re-run jobs(重新运行作业)**下拉菜单,并选择 **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**.
34-
![Rerun checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down.png)
33+
如果没有作业失败,您将不会看到 **重新运行作业(Re-run jobs)**下拉菜单。 相反,请单击 **Re-run all jobs(重新运行所有作业)**![重新运行检查下拉菜单](/assets/images/help/repository/rerun-checks-drop-down.png)
3534
{% endif %}
3635
{% ifversion ghes < 3.5 or ghae %}
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)
36+
1. 在工作流程的右上角,使用 **Re-run jobs(重新运行作业)**下拉菜单,并选择 **Re-run all jobs(重新运行所有作业)**![重新运行检查下拉菜单](/assets/images/help/repository/rerun-checks-drop-down-updated.png)
3937
{% endif %}
38+
{% data reusables.actions.enable-debug-logging %}
4039

4140
{% endwebui %}
4241

4342
{% cli %}
4443

4544
{% data reusables.cli.cli-learn-more %}
4645

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.
46+
要重新运行失败的工作流程运行,请使用 `run rerun` 子命令。 将 `run-id` 替换为您想要重新运行的已失败运行的 ID。 如果您没有指定 `run-id`{% data variables.product.prodname_cli %} 将返回一个交互式菜单,供您选择最近失败的运行。
4847

4948
```shell
5049
gh run rerun <em>run-id</em>
5150
```
5251

53-
To view the progress of the workflow run, use the `run watch` subcommand and select the run from the interactive list.
52+
{% if debug-reruns %}
53+
{% data reusables.actions.enable-debug-logging-cli %}
54+
55+
```shell
56+
gh run rerun <em>run-id</em> --debug
57+
```
58+
59+
{% endif %}
60+
61+
要查看工作流程运行的进度,请使用 `run watch` 子命令,并从交互式列表中选择运行。
5462

5563
```shell
5664
gh run watch
@@ -59,77 +67,90 @@ gh run watch
5967
{% endcli %}
6068

6169
{% if re-run-jobs %}
62-
## Re-running failed jobs in a workflow
70+
## 重新运行工作流程中失败的作业
6371

64-
If any jobs in a workflow run failed, you can re-run just the jobs that failed. When you re-run failed jobs in a workflow, a new workflow run will start for all failed jobs and their dependents. Any outputs for any successful jobs in the previous workflow run will be used for the re-run. Any artifacts that were created in the initial run will be available in the re-run. Any environment protection rules that passed in the previous run will automatically pass in the re-run.
72+
如果工作流程运行中的任何作业失败,您可以仅重新运行失败的作业。 在重新运行工作流程中失败的作业时,将为所有失败的作业及其依赖项启动新的工作流程运行。 上一个工作流程运行中任何成功作业的任何输出都将用于重新运行。 在初始运行中创建的任何构件都将在重新运行中可用。 在上一次运行中通过的任何环境保护规则都将自动在重新运行中通过。
6573

6674
{% webui %}
6775

6876
{% data reusables.repositories.navigate-to-repo %}
6977
{% data reusables.repositories.actions-tab %}
7078
{% data reusables.repositories.navigate-to-workflow %}
7179
{% data reusables.repositories.view-run %}
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)
80+
1. 在工作流程的右上角,使用 **Re-run jobs(重新运行作业)**下拉菜单,并选择 **Re-run failed jobs(重新运行失败的作业)**![重新运行失败的作业下拉菜单](/assets/images/help/repository/rerun-failed-jobs-drop-down.png)
81+
{% data reusables.actions.enable-debug-logging %}
7482

7583
{% endwebui %}
7684

7785
{% cli %}
7886

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.
87+
要重新运行工作流程运行中失败的作业,请使用 `run rerun` 子命令与 `--failed` 标志。 将 `run-id` 替换为要为其重新运行失败作业的运行 ID。 如果您没有指定 `run-id`{% data variables.product.prodname_cli %} 将返回一个交互式菜单,供您选择最近失败的运行。
8088

8189
```shell
8290
gh run rerun <em>run-id</em> --failed
8391
```
8492

93+
{% if debug-reruns %}
94+
{% data reusables.actions.enable-debug-logging-cli %}
95+
96+
```shell
97+
gh run rerun <em>run-id</em> --failed --debug
98+
```
99+
100+
{% endif %}
85101
{% endcli %}
86102

87-
## Re-running a specific job in a workflow
103+
## 重新运行工作流程中的特定作业
88104

89-
When you re-run a specific job in a workflow, a new workflow run will start for the job and any dependents. Any outputs for any other jobs in the previous workflow run will be used for the re-run. Any artifacts that were created in the initial run will be available in the re-run. Any environment protection rules that passed in the previous run will automatically pass in the re-run.
105+
重新运行工作流程中的特定作业时,将为该作业和任何依赖项启动新的工作流程运行。 上一个工作流程运行中任何其他作业的任何输出都将用于重新运行。 在初始运行中创建的任何构件都将在重新运行中可用。 在上一次运行中通过的任何环境保护规则都将自动在重新运行中通过。
90106

91107
{% webui %}
92108

93109
{% data reusables.repositories.navigate-to-repo %}
94110
{% data reusables.repositories.actions-tab %}
95111
{% data reusables.repositories.navigate-to-workflow %}
96112
{% data reusables.repositories.view-run %}
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)
113+
1. 在要重新运行的作业旁边,单击 {% octicon "sync" aria-label="The re-run icon" %}。 ![重新运行选定的作业](/assets/images/help/repository/re-run-selected-job.png)
99114

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)
115+
或者,单击作业以查看日志。 在日志中,单击 {% octicon "sync" aria-label="The re-run icon" %}![重新运行选定的作业](/assets/images/help/repository/re-run-single-job-from-log.png)
116+
{% data reusables.actions.enable-debug-logging %}
102117

103118
{% endwebui %}
104119

105120
{% cli %}
106121

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.
122+
要重新运行工作流程运行中的特定作业,请使用 `run rerun` 子命令与 `--job` 标志。 将 `job-id` 替换为您想要重新运行的作业的 ID。
108123

109124
```shell
110125
gh run rerun --job <em>job-id</em>
111126
```
112127

128+
{% if debug-reruns %}
129+
{% data reusables.actions.enable-debug-logging-cli %}
130+
131+
```shell
132+
gh run rerun --job <em>job-id</em> --debug
133+
```
134+
135+
{% endif %}
113136
{% endcli %}
114137

115138
{% endif %}
116139

117140
{% ifversion fpt or ghes > 3.4 or ghae-issue-4721 or ghec %}
118-
## Reviewing previous workflow runs
141+
## 查看以前的工作流程运行
119142

120-
You can view the results from your previous attempts at running a workflow. You can also view previous workflow runs using the API. For more information, see ["Get a workflow run"](/rest/reference/actions#get-a-workflow-run).
143+
您可以查看以前尝试运行工作流程的结果。 您还可以使用 API 查看以前的工作流程运行。 更多信息请参阅“[获取工作流程运行](/rest/reference/actions#get-a-workflow-run)”。
121144

122145
{% data reusables.repositories.navigate-to-repo %}
123146
{% data reusables.repositories.actions-tab %}
124147
{% data reusables.repositories.navigate-to-workflow %}
125148
{% data reusables.repositories.view-run %}
126149
{%- if re-run-jobs %}
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)
150+
1. 任何以前的运行尝试都显示在 **Latest(最新)**下拉菜单中。 ![以前的运行尝试](/assets/images/help/repository/previous-run-attempts.png)
129151
{%- else %}
130-
1. Any previous run attempts are shown in the left pane.
131-
![Rerun workflow](/assets/images/help/settings/actions-review-workflow-rerun.png)
152+
1. 任何以前的运行尝试都显示在左窗格中。 ![重新运行工作流程](/assets/images/help/settings/actions-review-workflow-rerun.png)
132153
{%- endif %}
133-
1. Click an entry to view its results.
154+
1. 单击某个条目以查看其结果。
134155

135156
{% endif %}

translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ versions:
2222

2323
有关设置密码的更多信息,请参阅“[创建和使用加密密码](/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)”。
2424

25+
{% if debug-reruns %}
26+
27+
Additionally, anyone who has access to run a workflow can enable runner diagnostic logging and step debug logging for a workflow re-run. For more information, see "[Re-running workflows and jobs](/actions/managing-workflow-runs/re-running-workflows-and-jobs)."
28+
29+
{% endif %}
30+
2531
## 启用运行程序诊断日志
2632

2733
Runner diagnostic logging provides additional log files that contain information about how a runner is executing a job. 两个额外的日志文件被添加到日志存档中:

translations/zh-CN/content/actions/security-guides/encrypted-secrets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ steps:
341341
- name: Decrypt large secret
342342
run: ./.github/scripts/decrypt_secret.sh
343343
env:
344-
LARGE_SECRET_PASSPHRASE: {% raw %}${{ secrets. LARGE_SECRET_PASSPHRASE }}{% endraw %}
344+
LARGE_SECRET_PASSPHRASE: {% raw %}${{ secrets.LARGE_SECRET_PASSPHRASE }}{% endraw %}
345345
# This command is just an example to show your secret being printed
346346
# Ensure you remove any print statements of your secrets. GitHub does
347347
# not hide secrets that use this workaround.

translations/zh-CN/content/actions/using-workflows/reusing-workflows.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ When you call a reusable workflow, you can only use the following keywords in th
198198
* [`jobs.<job_id>.needs`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds)
199199
* [`jobs.<job_id>.if`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_idif)
200200
* [`jobs.<job_id>.permissions`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_idpermissions)
201+
* [`jobs.<job_id>.concurrency`](/actions/reference/workflow-syntax-for-github-actions#concurrency)
201202

202203
{% note %}
203204

translations/zh-CN/content/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,16 @@ Action | Description
11991199
| `secret_scanning.disable` | An organization owner disabled secret scanning for all existing{% ifversion ghec %} private or internal{% endif %} repositories. For more information, see "[About secret scanning](/github/administering-a-repository/about-secret-scanning)."
12001200
| `secret_scanning.enable` | An organization owner enabled secret scanning for all existing{% ifversion ghec %} private or internal{% endif %} repositories.
12011201

1202+
{% if secret-scanning-alert-audit-log %}
1203+
### `secret_scanning_alert` category actions
1204+
1205+
| Action | Description
1206+
|------------------|-------------------
1207+
| `secret_scanning_alert.create` | {% data variables.product.prodname_dotcom %} detected a secret and created a {% data variables.product.prodname_secret_scanning %} alert. For more information, see "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/code-security/secret-scanning/managing-alerts-from-secret-scanning)."
1208+
| `secret_scanning_alert.reopen` | A user reopened a {% data variables.product.prodname_secret_scanning %} alert.
1209+
| `secret_scanning_alert.resolve` | A user resolved a {% data variables.product.prodname_secret_scanning %} alert.
1210+
{% endif %}
1211+
12021212
### `secret_scanning_new_repos` category actions
12031213

12041214
| Action | Description

translations/zh-CN/content/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/exporting-audit-log-activity-for-your-enterprise.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ topics:
1919

2020
可以通过从企业审核日志下载 JSON 文件来导出 Git 事件数据。 与审核日志数据不同,您无法在审核日志用户界面中查询要筛选和导出的特定 Git 事件。
2121

22+
{% data reusables.audit_log.git-events-export-limited %}
23+
2224
{% data reusables.audit_log.exported-log-keys-and-values %}
2325

2426
作为导出日志事件的替代方法,您可以使用 API 检索审核日志事件,或设置 {% data variables.product.product_name %} 以在记录事件时流式传输审核数据。 更多信息请参阅“[对企业使用审核日志 API](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/using-the-audit-log-api-for-your-enterprise)”和“[流式传输企业的审核日志](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise)”。

0 commit comments

Comments
 (0)