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" }