Fix config schema (typo in pipeline.step.when.platform) (#417)

* fix schema

* fix test fixtures
This commit is contained in:
6543
2021-10-08 18:10:17 +02:00
committed by GitHub
parent 88389e4a06
commit 3254a7ca00
2 changed files with 6 additions and 6 deletions

View File

@@ -34,19 +34,19 @@ pipeline:
when: when:
status: [success, failure] status: [success, failure]
when-plattform: when-platform:
image: alpine image: alpine
commands: commands:
- echo "test" - echo "test"
when: when:
plattform: linux/amd64 platform: linux/amd64
when-plattform-array: when-platform-array:
image: alpine image: alpine
commands: commands:
- echo "test" - echo "test"
when: when:
plattform: [ linux/*, windows/amd64 ] platform: [ linux/*, windows/amd64 ]
when-environment: when-environment:
image: alpine image: alpine

View File

@@ -194,8 +194,8 @@
"enum": ["success", "failure"] "enum": ["success", "failure"]
} }
}, },
"plattform": { "platform": {
"description": "Execute a step only on a specific platform. Read more: https://woodpecker-ci.github.io/docs/usage/pipeline-syntax#plattform", "description": "Execute a step only on a specific platform. Read more: https://woodpecker-ci.github.io/docs/usage/pipeline-syntax#platform",
"oneOf": [ "oneOf": [
{ {
"type": "array", "type": "array",