mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-31 07:28:10 +00:00
Fix config schema (typo in pipeline.step.when.platform) (#417)
* fix schema * fix test fixtures
This commit is contained in:
@@ -34,19 +34,19 @@ pipeline:
|
||||
when:
|
||||
status: [success, failure]
|
||||
|
||||
when-plattform:
|
||||
when-platform:
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "test"
|
||||
when:
|
||||
plattform: linux/amd64
|
||||
platform: linux/amd64
|
||||
|
||||
when-plattform-array:
|
||||
when-platform-array:
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "test"
|
||||
when:
|
||||
plattform: [ linux/*, windows/amd64 ]
|
||||
platform: [ linux/*, windows/amd64 ]
|
||||
|
||||
when-environment:
|
||||
image: alpine
|
||||
|
@@ -194,8 +194,8 @@
|
||||
"enum": ["success", "failure"]
|
||||
}
|
||||
},
|
||||
"plattform": {
|
||||
"description": "Execute a step only on a specific platform. Read more: https://woodpecker-ci.github.io/docs/usage/pipeline-syntax#plattform",
|
||||
"platform": {
|
||||
"description": "Execute a step only on a specific platform. Read more: https://woodpecker-ci.github.io/docs/usage/pipeline-syntax#platform",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "array",
|
||||
|
Reference in New Issue
Block a user