From cf3e7a56a37c1d2864febbfc4f5930764886fbdb Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Tue, 13 Jun 2023 17:26:26 -0500 Subject: [PATCH] chore(json-schema): update --- __tests__/helpers/github-workflow-schema.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/__tests__/helpers/github-workflow-schema.json b/__tests__/helpers/github-workflow-schema.json index 39c5e1ef5..a640ba68f 100644 --- a/__tests__/helpers/github-workflow-schema.json +++ b/__tests__/helpers/github-workflow-schema.json @@ -1151,7 +1151,7 @@ "description": "A string representing the type of the input.", "$comment": "https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputsinput_idtype", "type": "string", - "enum": ["string", "choice", "boolean", "number"] + "enum": ["string", "choice", "boolean", "number", "environment"] }, "options": { "$comment": "https://github.blog/changelog/2021-11-10-github-actions-input-types-for-manual-workflows", @@ -1174,6 +1174,10 @@ "if": { "properties": { "type": { "const": "number" } }, "required": ["type"] }, "then": { "properties": { "default": { "type": "number" } } } }, + { + "if": { "properties": { "type": { "const": "environment" } }, "required": ["type"] }, + "then": { "properties": { "default": { "type": "string" } } } + }, { "if": { "properties": { "type": { "const": "choice" } }, "required": ["type"] }, "then": { "required": ["options"] }