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:
|
||||
branch: master
|
||||
|
||||
when-branch-array:
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "test"
|
||||
when:
|
||||
branch: [master, deploy]
|
||||
|
||||
when-event:
|
||||
image: alpine
|
||||
commands:
|
||||
|
|
|
@ -200,8 +200,17 @@
|
|||
},
|
||||
"branch": {
|
||||
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#branch",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"minLength": 1
|
||||
},
|
||||
{ "type": "string" }
|
||||
]
|
||||
},
|
||||
"event": {
|
||||
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#event",
|
||||
"oneOf": [
|
||||
|
|
Loading…
Reference in a new issue