Skip to content

Commit 2e855e2

Browse files
authored
Merge pull request github#17430 from github/repo-sync
repo sync
2 parents 3b4454e + 6e8fb88 commit 2e855e2

File tree

42 files changed

+437
-276
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

+437
-276
lines changed

translations/log/cn-resets.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ translations/zh-CN/data/reusables/package_registry/packages-cluster-support.md,b
310310
translations/zh-CN/data/reusables/repositories/deleted_forks_from_private_repositories_warning.md,broken liquid tags
311311
translations/zh-CN/data/reusables/repositories/github-reviews-security-advisories.md,broken liquid tags
312312
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,Listed in localization-support#489
313-
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,rendering error
313+
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,broken liquid tags
314314
translations/zh-CN/data/reusables/scim/after-you-configure-saml.md,broken liquid tags
315315
translations/zh-CN/data/reusables/secret-scanning/enterprise-enable-secret-scanning.md,broken liquid tags
316316
translations/zh-CN/data/reusables/sponsors/feedback.md,broken liquid tags

translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/about-your-personal-dashboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To access your personal dashboard once you're signed in, click the {% octicon "m
2424

2525
## Finding your recent activity
2626

27-
In the "Recent activity" section of your news feed, you can quickly find and follow up with recently updated issues and pull requests you're working on. Under "Recent activity", you can preview up to 12 recent updates made in the last two weeks.
27+
In the "Recent activity" section of your news feed, you can quickly find and follow up with recently updated issues and pull requests you're working on. Under "Recent activity", you can preview up to 4 recent updates made in the last two weeks.
2828

2929
{% data reusables.dashboard.recent-activity-qualifying-events %}
3030

translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-theme-settings.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ shortTitle: 管理主题设置
2020

2121
{% ifversion fpt or ghes > 3.2 or ghae-issue-4618 or ghec %}如果您视力不佳,则可以从前景和背景元素之间对比度更高的高对比度主题中受益。{% endif %}{% ifversion fpt or ghae-issue-4619 or ghec %} 如果您有色盲,可能会从我们的浅色盲和深色盲主题中受益。
2222

23-
{% ifversion fpt or ghec %}
24-
{% note %}
25-
26-
**注意:**色盲主题目前处于公开测试阶段。 有关在公开测试版中启用功能的更多信息,请参阅“[使用功能预览版探索抢先体验版本](/get-started/using-github/exploring-early-access-releases-with-feature-preview)”。
27-
28-
{% endnote %}
29-
{% endif %}
30-
3123
{% endif %}
3224

3325
{% data reusables.user-settings.access_settings %}

translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-swift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
### 使用多个 Swift 版本
6767

68-
您可以将作业配置为在构建矩阵中使用多个版本的 Swift
68+
You can configure your job to use multiple versions of Swift in a matrix.
6969

7070
```yaml{:copy}
7171
{% data reusables.actions.actions-not-certified-by-github-comment %}

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ miniTocMaxHeadingLevel: 3
2323

2424
上下文是一种访问工作流程运行、运行器环境、作业及步骤相关信息的方式。 每个上下文都是一个包含属性的对象,属性可以是字符串或其他对象。
2525

26-
{% data reusables.actions.context-contents %} 例如,`matrix` 上下文中仅填充 [build matrix](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix) 中的作业。
26+
{% data reusables.actions.context-contents %} For example, the `matrix` context is only populated for jobs in a [matrix](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix).
2727

2828
您可以使用表达式语法访问上下文。 更多信息请参阅“[表达式](/actions/learn-github-actions/expressions)”。
2929

@@ -537,19 +537,19 @@ jobs:
537537

538538
## `strategy` 上下文
539539

540-
对于具有生成矩阵的工作流程,`strategy` 上下文包含有关当前作业的矩阵执行策略的信息。
540+
For workflows with a matrix, the `strategy` context contains information about the matrix execution strategy for the current job.
541541

542-
| 属性名称 | 类型 | 描述 |
543-
| ----------------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
544-
| `strategy` | `对象` | 此上下文针对工作流程运行中的每项作业而改变。 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的所有属性。 |
545-
| `strategy.fail-fast` | `字符串` | `true` 时,如果构建矩阵中的任何作业失败,所有正在进行的作业都将被取消。 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast)”。 |
546-
| `strategy.job-index` | `字符串` | 生成矩阵中当前作业的索引。 **注意:** 此数字是零基数字。 生成矩阵中第一个作业的索引是 `0` |
547-
| `strategy.job-total` | `字符串` | 生成矩阵中的作业总数。 **注意:** 此数字 **不是**从零基数字。 例如,对于具有四个作业的生成矩阵,`job-total` 的值为 `4` |
548-
| `strategy.max-parallel` | `字符串` | 使用 `matrix` 作业策略时可同时运行的最大作业数。 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel)”。 |
542+
| 属性名称 | 类型 | 描述 |
543+
| ----------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
544+
| `strategy` | `对象` | 此上下文针对工作流程运行中的每项作业而改变。 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的所有属性。 |
545+
| `strategy.fail-fast` | `字符串` | When `true`, all in-progress jobs are canceled if any job in a matrix fails. 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast)”。 |
546+
| `strategy.job-index` | `字符串` | The index of the current job in the matrix. **注意:** 此数字是零基数字。 The first job's index in the matrix is `0`. |
547+
| `strategy.job-total` | `字符串` | The total number of jobs in the matrix. **注意:** 此数字 **不是**从零基数字。 For example, for a matrix with four jobs, the value of `job-total` is `4`. |
548+
| `strategy.max-parallel` | `字符串` | 使用 `matrix` 作业策略时可同时运行的最大作业数。 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel)”。 |
549549

550550
### `strategy` 上下文的示例内容
551551

552-
`strategy` 上下文的以下示例内容来自具有四个作业的生成矩阵,取自最终作业。 请注意零基 `job-index` 数字与 `job-total` (非零基)之间的差异。
552+
The following example contents of the `strategy` context is from a matrix with four jobs, and is taken from the final job. 请注意零基 `job-index` 数字与 `job-total` (非零基)之间的差异。
553553

554554
```yaml
555555
{
@@ -562,7 +562,7 @@ jobs:
562562

563563
### `strategy` 上下文的示例用法
564564

565-
此示例工作流程使用 `strategy.job-index` 属性为生成矩阵中每个作业的日志文件设置唯一名称。
565+
This example workflow uses the `strategy.job-index` property to set a unique name for a log file for each job in a matrix.
566566

567567
```yaml{:copy}
568568
name: Test matrix
@@ -587,18 +587,18 @@ jobs:
587587

588588
## `matrix` 上下文
589589

590-
对于具有生成矩阵的工作流程,`matrix` 上下文包含工作流程文件中定义的适用于当前作业的矩阵属性。 例如,如果使用 `os` `node` 键配置生成矩阵,则 `matrix` 上下文对象将包括 `os` `node` 属性,具有用于当前作业的值。
590+
For workflows with a matrix, the `matrix` context contains the matrix properties defined in the workflow file that apply to the current job. For example, if you configure a matrix with the `os` and `node` keys, the `matrix` context object includes the `os` and `node` properties with the values that are being used for the current job.
591591

592592
`matrix` 上下文中没有标准属性,只有工作流程文件中定义的属性。
593593

594-
| 属性名称 | 类型 | 描述 |
595-
| ------------------------------ | ----- | ------------------------------------------------------------------------------ |
596-
| `matrix` | `对象` | 此上下文仅适用于生成矩阵中的作业,并且对于工作流运行中的每个作业都会发生更改。 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的属性。 |
597-
| `matrix.<property_name>` | `字符串` | 矩阵属性的值。 |
594+
| 属性名称 | 类型 | 描述 |
595+
| ------------------------------ | ----- | --------------------------------------------------------------------------------------------------------------------------------------- |
596+
| `matrix` | `对象` | This context is only available for jobs in a matrix, and changes for each job in a workflow run. 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的属性。 |
597+
| `matrix.<property_name>` | `字符串` | 矩阵属性的值。 |
598598

599599
### `matrix` 上下文的示例内容
600600

601-
`matrix` 上下文的以下示例内容来自生成矩阵中的作业,该生成矩阵具有工作流中定义的 `os` `node` 矩阵属性。 该作业执行 `ubuntu-latest` OS 和 Node.js 版本 `16` 的矩阵组合。
601+
The following example contents of the `matrix` context is from a job in a matrix that has the `os` and `node` matrix properties defined in the workflow. 该作业执行 `ubuntu-latest` OS 和 Node.js 版本 `16` 的矩阵组合。
602602

603603
```yaml
604604
{
@@ -609,7 +609,7 @@ jobs:
609609

610610
### `matrix` 上下文的示例用法
611611

612-
此示例工作流程创建一个包含 `os` `node` 键的生成矩阵。 它使用 `matrix.os` 属性为每个作业设置运行器类型,并使用 `matrix.node` 属性为每个作业设置 Node.js 版本。
612+
This example workflow creates a matrix with `os` and `node` keys. 它使用 `matrix.os` 属性为每个作业设置运行器类型,并使用 `matrix.node` 属性为每个作业设置 Node.js 版本。
613613

614614
```yaml{:copy}
615615
name: Test matrix

translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-circleci-to-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ CircleCI 和 {% data variables.product.prodname_actions %} 在配置文件中使
5050

5151
CircleCI 和 {% data variables.product.prodname_actions %} 都提供在工作流程中重复使用和共享任务的机制。 CircleCI 使用以 YAML 编写的概念 orbs 来提供人们可以在工作流程中重复使用的任务。 {% data variables.product.prodname_actions %} 具有强大而灵活的可重复使用的组件,称为“操作”,您可以使用 JavaScript 文件或 Docker 映像来构建操作。 您可以编写自定义代码来创建操作,以您喜欢的方式与仓库交互,包括使用 {% data variables.product.product_name %} 的 API 以及任何公开的第三方 API 进行交互。 例如,操作可以发布 npm 模块、在创建紧急议题时发送短信提醒,或者部署可用于生产的代码。 更多信息请参阅“[创建操作](/actions/creating-actions)”。
5252

53-
CircleCI 可以使用 YAML 锚点和别名来重复使用工作流程的组件。 {% data variables.product.prodname_actions %} 支持对于重复使用构建矩阵的最常见需求。 有关构建矩阵的更多信息,请参阅“[管理复杂的工作流程](/actions/learn-github-actions/managing-complex-workflows/#using-a-build-matrix)”。
53+
CircleCI 可以使用 YAML 锚点和别名来重复使用工作流程的组件。 {% data variables.product.prodname_actions %} supports the most common need for reusability using matrices. For more information about matrices, see "[Using a matrix for your jobs](/actions/using-jobs/using-a-matrix-for-your-jobs)."
5454

5555
## 使用 Docker 映像
5656

translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-jenkins-to-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ Jenkins 可以并行运行 `stages` 和 `steps`,而 {% data variables.product.
8383
| ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8484
| [`parallel`](https://jenkins.io/doc/book/pipeline/syntax/#parallel) | [`jobs.<job_id>.strategy.max-parallel`](/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel) |
8585

86-
### 构建矩阵
86+
### Matrix
8787

88-
{% data variables.product.prodname_actions %} Jenkins 都允许您使用构建矩阵来定义各种系统组合。
88+
Both {% data variables.product.prodname_actions %} and Jenkins let you use a matrix to define various system combinations.
8989

9090
| Jenkins | {% data variables.product.prodname_actions %}
9191
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ Travis CI 可以使用 `stages` 并行运行作业。 同样,{% data variables
5959

6060
Travis CI 和 {% data variables.product.prodname_actions %} 都支持状态徽章,用于表示构建是通过还是失败。 更多信息请参阅“[将工作流程状态徽章添加到仓库](/actions/managing-workflow-runs/adding-a-workflow-status-badge)”。
6161

62-
### 使用构建矩阵
62+
### Using a matrix
6363

64-
Travis CI和 {% data variables.product.prodname_actions %} 都支持构建矩阵,允许您使用操作系统和软件包的组合进行测试。 更多信息请参阅“[使用构建矩阵](/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix)”。
64+
Travis CI and {% data variables.product.prodname_actions %} both support a matrix, allowing you to perform testing using combinations of operating systems and software packages. For more information, see "[Using a matrix for your jobs](/actions/using-jobs/using-a-matrix-for-your-jobs)."
6565

6666
下面是比较每个系统的语法示例:
6767

translations/zh-CN/content/actions/using-jobs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ children:
1313
- /using-jobs-in-a-workflow
1414
- /choosing-the-runner-for-a-job
1515
- /using-conditions-to-control-job-execution
16-
- /using-a-build-matrix-for-your-jobs
16+
- /using-a-matrix-for-your-jobs
1717
- /using-concurrency
1818
- /using-environments-for-jobs
1919
- /running-jobs-in-a-container

translations/zh-CN/content/actions/using-jobs/using-a-build-matrix-for-your-jobs.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)