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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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",