Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/schemas/json/github-workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -1551,9 +1551,19 @@
},
"type": {
"$comment": "https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#onworkflow_callinput_idtype",
"description": "Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.",
"description": "Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, string, or choice.",
"type": "string",
"enum": ["boolean", "number", "string"]
"enum": ["boolean", "number", "string", "choice"]
},
"options": {
"$comment": "https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#onworkflow_callinput_idtype",
"description": "The options of the dropdown list, if the type is a choice.",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"maxItems": 10
},
"default": {
"$comment": "https://help.github.com/en/github/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions#inputsinput_iddefault",
Expand Down
8 changes: 8 additions & 0 deletions src/test/github-workflow/reusable-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ on:
type: number
default: 0
required: false
deployment_env:
description: Target deployment environment
type: choice
required: true
options:
- development
- staging
- production
jobs:
build-and-publish:
name: build and publish
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ on:
description: The directory in which to run terraform
required: true
type: string
deployment_environment:
description: Target deployment environment
required: true
type: choice
options:
- dev
- staging
- prod
secrets:
token:
required: true
Expand Down