From 44948c7a92ea88f38e1924817e5c2e3c03e8ab2a Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Mon, 6 Mar 2023 11:38:25 -0800 Subject: [PATCH] Extract `step-uses` into its own definition --- workflow-parser/src/workflow-v1.0.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/workflow-parser/src/workflow-v1.0.json b/workflow-parser/src/workflow-v1.0.json index ec233b9..b3ce7ec 100644 --- a/workflow-parser/src/workflow-v1.0.json +++ b/workflow-parser/src/workflow-v1.0.json @@ -2044,8 +2044,7 @@ "continue-on-error": "step-continue-on-error", "timeout-minutes": "step-timeout-minutes", "uses": { - "description": "Selects an action to run as part of a step in your job. An action is a reusable unit of code. You can use an action defined in the same repository as the workflow, a public repository, or in a published Docker container image.", - "type": "non-empty-string", + "type": "step-uses", "required": true }, "with": "step-with", @@ -2053,6 +2052,12 @@ } } }, + "step-uses": { + "description": "Selects an action to run as part of a step in your job. An action is a reusable unit of code. You can use an action defined in the same repository as the workflow, a public repository, or in a published Docker container image.", + "string": { + "require-non-empty": true + } + }, "step-continue-on-error": { "context": [ "github",