Add examples and metadata guidance to "Creating workflow templates" doc (#58161)
Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
```json copy
|
||||
{
|
||||
"name": "Octo Organization Workflow",
|
||||
"description": "Octo Organization CI workflow template.",
|
||||
"iconName": "example-icon",
|
||||
"categories": [
|
||||
"Go"
|
||||
],
|
||||
"filePatterns": [
|
||||
"package.json$",
|
||||
"^Dockerfile",
|
||||
".*\\.md$"
|
||||
]
|
||||
}
|
||||
```
|
||||
11
data/reusables/actions/workflow-templates-metadata-keys.md
Normal file
11
data/reusables/actions/workflow-templates-metadata-keys.md
Normal file
@@ -0,0 +1,11 @@
|
||||
* `name` - **Required.** The name of the workflow. This is displayed in the list of available workflows.
|
||||
* `description` - **Required.** The description of the workflow. This is displayed in the list of available workflows.
|
||||
* `iconName` - **Optional.** Specifies an icon for the workflow that is displayed in the list of workflows. `iconName` can be one of the following types:
|
||||
* An SVG file that is stored in the `workflow-templates` directory. To reference a file, the value must be the file name without the file extension. For example, an SVG file named `example-icon.svg` is referenced as `example-icon`.
|
||||
* An icon from {% data variables.product.prodname_dotcom %}'s set of [Octicons](https://primer.style/octicons/). To reference an octicon, the value must be `octicon <icon name>`. For example, `octicon smiley`.
|
||||
* `categories` - **Optional.** Defines the categories that the workflow is shown under. You can use category names from the following lists:
|
||||
* General category names from the [starter-workflows](https://github.com/actions/starter-workflows/blob/main/README.md#categories) repository.
|
||||
* Linguist languages from the list in the [linguist](https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml) repository.
|
||||
* Supported tech stacks from the list in the [starter-workflows](https://github.com/github-starter-workflows/repo-analysis-partner/blob/main/tech_stacks.yml) repository.
|
||||
|
||||
* `filePatterns` - **Optional.** Allows the workflow to be used if the user's repository has a file in its root directory that matches a defined regular expression.
|
||||
Reference in New Issue
Block a user