GitHub Release with YAML
List of YAML parameters and examples for the "GitHub Release" action
YAML parameters for GitHub Release
名称 | 类型 | 描述 |
---|---|---|
action 必填 | String | The ID of the action. |
type 必填 | String | The type of the action. Should be set to GIT_HUB_RELEASE . |
tag_name 必填 | String | The name of the tag. |
target_commitish | String | Specifies branch name or commit SHA from which the Git tag is created. Unused if the Git tag already exists. |
release_name | String | The name of the release. |
body | String | Text describing the contents of the tag. |
draft | Boolean | Set to true to create a draft (unpublished) release or to false (default) to create a published one. |
prerelease | Boolean | Set to true to identify the release as a prerelease. Set to false (default) to identify the release as a complete release. |
external_project_id | String | Repo slug of the Github project. |
assets | Asset[] | Defines release assets. |
source_path | String | The path from which the file will be released. Required if you want to use an asset. |
label | String | An alternate short description of the asset. Used in place of the filename. Should be set in a URI query parameter. |
integration_hash | String | The ID of the integration. |
YAML example for GitHub Release
actions:
- action: "Make GitHub Release"
type: "GIT_HUB_RELEASE"
tag_name: "tag-zip-$BUDDY_EXECUTION_ID"
target_commitish: "$BUDDY_EXECUTION_REVISION"
release_name: "release"
body: "description"
draft: true
prerelease: true
external_project_id: "integration/repository"
assets:
- source_path: "/"
label: "label"
integration_hash: "5f72f6bb4527bb2d7e08e431"