mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
fix pipeline schema to support branch as an array in 'when' (#836)
This commit is contained in:
parent
8fa2a5efe4
commit
e0d8d13a91
2 changed files with 17 additions and 1 deletions
|
@ -6,6 +6,13 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
when-branch-array:
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- echo "test"
|
||||||
|
when:
|
||||||
|
branch: [master, deploy]
|
||||||
|
|
||||||
when-event:
|
when-event:
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
|
|
|
@ -200,7 +200,16 @@
|
||||||
},
|
},
|
||||||
"branch": {
|
"branch": {
|
||||||
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#branch",
|
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#branch",
|
||||||
"type": "string"
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
{ "type": "string" }
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"event": {
|
"event": {
|
||||||
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#event",
|
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#event",
|
||||||
|
|
Loading…
Reference in a new issue