From c713b46de1003e8b465cda75f595e996c8871ea5 Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Mon, 12 Jun 2023 18:09:12 -0500 Subject: [PATCH] chore(json-schema): update --- __tests__/helpers/github-workflow-schema.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/__tests__/helpers/github-workflow-schema.json b/__tests__/helpers/github-workflow-schema.json index 5d41b8eb0..39c5e1ef5 100644 --- a/__tests__/helpers/github-workflow-schema.json +++ b/__tests__/helpers/github-workflow-schema.json @@ -1149,8 +1149,9 @@ }, "type": { "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", "environment"] + "enum": ["string", "choice", "boolean", "number"] }, "options": { "$comment": "https://github.blog/changelog/2021-11-10-github-actions-input-types-for-manual-workflows", @@ -1161,10 +1162,17 @@ } }, "allOf": [ + { + "if": { "properties": { "type": { "const": "string" } }, "required": ["type"] }, + "then": { "properties": { "default": { "type": "string" } } } + }, { "if": { "properties": { "type": { "const": "boolean" } }, "required": ["type"] }, - "then": { "properties": { "default": { "type": "boolean" } } }, - "else": { "properties": { "default": { "type": "string" } } } + "then": { "properties": { "default": { "type": "boolean" } } } + }, + { + "if": { "properties": { "type": { "const": "number" } }, "required": ["type"] }, + "then": { "properties": { "default": { "type": "number" } } } }, { "if": { "properties": { "type": { "const": "choice" } }, "required": ["type"] },