Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace run_on references with runs_on #965

Merged
merged 1 commit into from
Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/docs/20-usage/25-multi-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -132,6 +132,6 @@ pipeline:
depends_on:
- deploy

run_on: [ success, failure ]
runs_on: [ success, failure ]
+skip_clone: true
```
2 changes: 1 addition & 1 deletion pipeline/schema/.woodpecker/test-run-on.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ pipeline:
commands:
- go test

run_on: [ success, failure ]
runs_on: [ success, failure ]
2 changes: 1 addition & 1 deletion pipeline/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"minLength": 1,
"items": { "type": "string" }
},
"run_on": {
"runs_on": {
"type": "array",
"minLength": 1,
"items": { "type": "string" }
Expand Down