From 93f46ddcce128cdb2b318b68f62cbb8bc9071864 Mon Sep 17 00:00:00 2001 From: qwerty287 Date: Mon, 1 Jan 2024 11:36:10 +0100 Subject: [PATCH 1/2] Fix `depends_on` as string in schema --- pipeline/frontend/yaml/linter/schema/schema.json | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pipeline/frontend/yaml/linter/schema/schema.json b/pipeline/frontend/yaml/linter/schema/schema.json index da3eca4b3e..86d28d881c 100644 --- a/pipeline/frontend/yaml/linter/schema/schema.json +++ b/pipeline/frontend/yaml/linter/schema/schema.json @@ -346,9 +346,18 @@ }, "depends_on": { "description": "Execute a step after another step has finished.", - "type": "array", - "items": { "type": "string" }, - "minLength": 1 + "oneOf": [ + { + "type": "array", + "minLength": 1, + "items": { + "type": "string", + } + }, + { + "type": "string", + } + ] }, "detach": { "description": "Detach a step to run in background until pipeline finishes. Read more: https://woodpecker-ci.org/docs/usage/services#detachment", From 5abf7a38edbac453b564dfb03b41f9f29c21ab8f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 10:38:07 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks [CI SKIP] for more information, see https://pre-commit.ci --- pipeline/frontend/yaml/linter/schema/schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline/frontend/yaml/linter/schema/schema.json b/pipeline/frontend/yaml/linter/schema/schema.json index 86d28d881c..37a99bdfc0 100644 --- a/pipeline/frontend/yaml/linter/schema/schema.json +++ b/pipeline/frontend/yaml/linter/schema/schema.json @@ -351,11 +351,11 @@ "type": "array", "minLength": 1, "items": { - "type": "string", + "type": "string" } }, { - "type": "string", + "type": "string" } ] },