Skip to content

Commit 4568b8c

Browse files
authored
Merge branch 'main' into patch-2
2 parents ebbc059 + b4f1d04 commit 4568b8c

21 files changed

Lines changed: 909 additions & 764 deletions

File tree

script/i18n/report-reset-files.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ function pullRequestBodyReport() {
6666
.forEach((reason) => {
6767
const files = filesByReason[reason]
6868
body.push(`\n### ${reason}`)
69-
body.push(`\n${files.length} files:\n`)
69+
body.push(`\n<details><summary>${files.length} files:</summary>\n`)
7070
const checkBoxes = files.map((file) => `- [ ] ${file}`)
7171
body.push(checkBoxes)
72+
body.push('\n</details>')
7273
})
7374

7475
return body.flat().join('\n')

translations/ja-JP/content/actions/learn-github-actions/creating-workflow-templates.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ topics:
1919
{% data reusables.actions.enterprise-github-hosted-runners %}
2020
{% data reusables.actions.ae-beta %}
2121

22-
## 概要
22+
## Overview
2323

2424
{% data reusables.actions.workflow-organization-templates %}
2525

26-
## ワークフロー テンプレートの作成
26+
## Creating a workflow template
2727

28-
ワークフローテンプレートは、Organizationの `.github` リポジトリへの書き込みアクセス権を持つユーザが作成できます。 その後、ワークフローを作成する権限を持つOrganizationのメンバーがテンプレートを使用できます。
28+
Workflow templates can be created by users with write access to the organization's `.github` repository. The templates can then be used by organization members who have permission to create workflows.
2929

3030
{% ifversion fpt %}
3131
Your workflow templates can be used to create workflows in public repositories only. Organizations using {% data variables.product.prodname_ghe_cloud %} can also use workflow templates to create workflows in private repositories. For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/actions/learn-github-actions/creating-workflow-templates).
@@ -39,15 +39,15 @@ Your workflow templates can be used to create workflows in public repositories o
3939
{% endnote %}
4040
{% endif %}
4141

42-
この手順では、ワークフロー テンプレートとメタデータ ファイルを作成する方法を示します。 メタデータ ファイルには、ユーザが新しいワークフローを作成するときにテンプレートがどのように表示されるかについて説明します。
42+
This procedure demonstrates how to create a workflow template and metadata file. The metadata file describes how the template is presented to users when they are creating a new workflow.
4343

44-
1. 存在しない場合は、Organization内で`.github`という名前の新しいパブリック リポジトリを作成します。
45-
2. `workflow-templates`という名前のディレクトリを作成します。
46-
3. `workflow-templates` ディレクトリ内に新しいワークフローファイルを作成します。
44+
1. If it doesn't already exist, create a new public repository named `.github` in your organization.
45+
2. Create a directory named `workflow-templates`.
46+
3. Create your new workflow file inside the `workflow-templates` directory.
4747

48-
リポジトリのデフォルトブランチを参照する必要がある場合は、 `$default-branch` プレースホルダを使用できます。 テンプレートを使用してワークフローを作成すると、プレースホルダはリポジトリのデフォルトブランチの名前に自動的に置き換えられます。
48+
If you need to refer to a repository's default branch, you can use the `$default-branch` placeholder. When a workflow is created using your template, the placeholder will be automatically replaced with the name of the repository's default branch.
4949

50-
たとえば、`octo-organization-ci.yml`という名前のこのファイルは、基本的なワークフローを示しています。
50+
For example, this file named `octo-organization-ci.yml` demonstrates a basic workflow.
5151

5252
```yaml
5353
name: Octo Organization CI
@@ -68,7 +68,7 @@ Your workflow templates can be used to create workflows in public repositories o
6868
- name: Run a one-line script
6969
run: echo Hello from Octo Organization
7070
```
71-
4. `workflow-templates` ディレクトリ内にメタデータファイルを作成します。 メタデータ ファイルは、ワークフロー ファイルと同じ名前である必要がありますが、 `.yml` 拡張子の代わりに、 `.properties.json`を付ける必要があります。 たとえば`octo-organization-ci.properties.json`という名前のこのファイルには 、`octo-organization-ci.yml`という名前のワークフローファイルのメタデータが含まれています。
71+
4. Create a metadata file inside the `workflow-templates` directory. The metadata file must have the same name as the workflow file, but instead of the `.yml` extension, it must be appended with `.properties.json`. For example, this file named `octo-organization-ci.properties.json` contains the metadata for a workflow file named `octo-organization-ci.yml`:
7272
```yaml
7373
{
7474
"name": "Octo Organization Workflow",
@@ -84,16 +84,16 @@ Your workflow templates can be used to create workflows in public repositories o
8484
]
8585
}
8686
```
87-
* `name` - **必須。** ワークフロー テンプレートの名前。 これは、使用可能なテンプレートの一覧に表示されます。
88-
* `description` - **必須。** ワークフロー テンプレートの説明。 これは、使用可能なテンプレートの一覧に表示されます。
89-
* `iconName` - **必須。** テンプレート リスト内のワークフローのエントリのアイコンを定義します。 `iconName` は、同じ名前の SVG アイコンである必要があり、 `workflow-templates` ディレクトリに格納する必要があります。 たとえば、`example-icon.svg`という名前の SVG ファイルは、 `example-icon`として参照されます。
90-
* `categories` - **オプション。** ワークフローの言語カテゴリを定義します。 ユーザーが使用可能なテンプレートを表示する際に、同じ言語に一致するテンプレートが目立つようにになります。 使用可能な言語カテゴリについては、「https://github.com/github/linguist/blob/master/lib/linguist/languages.yml」を参照してください。
91-
* `filePatterns` - **オプション 。** 定義された正規表現に一致するファイルがユーザーのリポジトリのルート ディレクトリにある場合に、テンプレートを使用できるようにします。
87+
* `name` - **Required.** The name of the workflow template. This is displayed in the list of available templates.
88+
* `description` - **Required.** The description of the workflow template. This is displayed in the list of available templates.
89+
* `iconName` - **Optional.** Defines an icon for the workflow's entry in the template list. The `iconName` must be an SVG icon of the same name, and must be stored in the `workflow-templates` directory. For example, a SVG file named `example-icon.svg` is referenced as `example-icon`.
90+
* `categories` - **Optional.** Defines the language category of the workflow. When a user views the available templates, those templates that match the same language will feature more prominently. For information on the available language categories, see https://github.com/github/linguist/blob/master/lib/linguist/languages.yml.
91+
* `filePatterns` - **Optional.** Allows the template to be used if the user's repository has a file in its root directory that matches a defined regular expression.
9292

93-
別のワークフロー テンプレートを追加するには、同じ `workflow-templates` ディレクトリにファイルを追加します。 例:
93+
To add another workflow template, add your files to the same `workflow-templates` directory. For example:
9494

95-
![ワークフロー テンプレート ファイル](/assets/images/help/images/workflow-template-files.png)
95+
![Workflow template files](/assets/images/help/images/workflow-template-files.png)
9696

97-
## 次のステップ
97+
## Next steps
9898

9999
To continue learning about {% data variables.product.prodname_actions %}, see "[Using workflow templates](/actions/learn-github-actions/using-workflow-templates)."

0 commit comments

Comments
 (0)