mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
Fix indentation for pipeline-global when
documentation (#1387)
Fixes https://github.com/woodpecker-ci/woodpecker/issues/1386 Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
3372d1a87c
commit
df5225ff18
1 changed files with 11 additions and 9 deletions
|
@ -714,13 +714,14 @@ Woodpecker gives the ability to skip whole pipelines (not just steps #when---con
|
||||||
Example conditional execution by repository:
|
Example conditional execution by repository:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
|
+when:
|
||||||
|
+ repo: test/test
|
||||||
|
+
|
||||||
pipeline:
|
pipeline:
|
||||||
slack:
|
slack:
|
||||||
image: plugins/slack
|
image: plugins/slack
|
||||||
settings:
|
settings:
|
||||||
channel: dev
|
channel: dev
|
||||||
+ when:
|
|
||||||
+ repo: test/test
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### `branch`
|
### `branch`
|
||||||
|
@ -732,13 +733,14 @@ Branch conditions are not applied to tags.
|
||||||
Example conditional execution by branch:
|
Example conditional execution by branch:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
pipeline:
|
+when:
|
||||||
slack:
|
+ branch: master
|
||||||
image: plugins/slack
|
+
|
||||||
settings:
|
pipeline:
|
||||||
channel: dev
|
slack:
|
||||||
+ when:
|
image: plugins/slack
|
||||||
+ branch: master
|
settings:
|
||||||
|
channel: dev
|
||||||
```
|
```
|
||||||
|
|
||||||
> The step now triggers on master, but also if the target branch of a pull request is `master`. Add an event condition to limit it further to pushes on master only.
|
> The step now triggers on master, but also if the target branch of a pull request is `master`. Add an event condition to limit it further to pushes on master only.
|
||||||
|
|
Loading…
Reference in a new issue