mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-22 16:36:30 +00:00
Fix schema with detached steps (#4066)
This commit is contained in:
parent
644f731327
commit
e2a43e8467
1 changed files with 24 additions and 2 deletions
|
@ -227,7 +227,7 @@
|
|||
},
|
||||
"step": {
|
||||
"description": "A step of your workflow executes either arbitrary commands or uses a plugin. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#steps",
|
||||
"oneOf": [
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/commands_step"
|
||||
},
|
||||
|
@ -240,7 +240,29 @@
|
|||
"description": "Every step of your pipeline executes arbitrary commands inside a specified docker container. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#steps",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["image", "commands"],
|
||||
"required": ["image"],
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"detach": {
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {},
|
||||
"else": {
|
||||
"anyOf": [
|
||||
{
|
||||
"required": ["commands"]
|
||||
},
|
||||
{
|
||||
"required": ["entrypoint"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "The name of the step. Can be used if using the array style steps list.",
|
||||
|
|
Loading…
Reference in a new issue