From cdbba4c3066b24f10fc6b7376b6b62a83f36cb73 Mon Sep 17 00:00:00 2001 From: Arno Hautala Date: Thu, 9 Jun 2022 23:44:26 -0400 Subject: [PATCH] fix run_on references with runs_on in docs (#965) --- docs/docs/20-usage/25-multi-pipeline.md | 6 +++--- pipeline/schema/.woodpecker/test-run-on.yml | 2 +- pipeline/schema/schema.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/20-usage/25-multi-pipeline.md b/docs/docs/20-usage/25-multi-pipeline.md index fa1a1a589..9e5af6934 100644 --- a/docs/docs/20-usage/25-multi-pipeline.md +++ b/docs/docs/20-usage/25-multi-pipeline.md @@ -104,7 +104,7 @@ pipeline: + - test ``` -Pipelines that need to run even on failures should set the `run_on` tag. +Pipelines that need to run even on failures should set the `runs_on` tag. ```diff pipeline: @@ -116,7 +116,7 @@ pipeline: depends_on: - deploy -+run_on: [ success, failure ] ++runs_on: [ success, failure ] ``` Some pipelines don't need the source code, set the `skip_clone` tag to skip cloning: @@ -132,6 +132,6 @@ pipeline: depends_on: - deploy -run_on: [ success, failure ] +runs_on: [ success, failure ] +skip_clone: true ``` diff --git a/pipeline/schema/.woodpecker/test-run-on.yml b/pipeline/schema/.woodpecker/test-run-on.yml index dc4890631..c2b1a2f6f 100644 --- a/pipeline/schema/.woodpecker/test-run-on.yml +++ b/pipeline/schema/.woodpecker/test-run-on.yml @@ -4,4 +4,4 @@ pipeline: commands: - go test -run_on: [ success, failure ] +runs_on: [ success, failure ] diff --git a/pipeline/schema/schema.json b/pipeline/schema/schema.json index 28435d78b..dc980af4c 100644 --- a/pipeline/schema/schema.json +++ b/pipeline/schema/schema.json @@ -25,7 +25,7 @@ "minLength": 1, "items": { "type": "string" } }, - "run_on": { + "runs_on": { "type": "array", "minLength": 1, "items": { "type": "string" }