fix: update schema event_enum to remove error warning when.event (#3357)

change test case to check

fix #3356
This commit is contained in:
sinlov 2024-02-09 15:05:21 +08:00 committed by GitHub
parent 147137c7bb
commit 134fb7900c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -25,7 +25,14 @@ steps:
commands:
- echo "test"
when:
event: [push, pull_request, tag, deployment]
event:
- manual
- push
- pull_request
- pull_request_closed
- tag
- deployment
- release
when-event-exclude-pull_request_closed:
image: alpine

View file

@ -491,7 +491,7 @@
}
},
"event_enum": {
"enum": ["push", "pull_request", "pull_request_closed", "tag", "deployment", "cron", "manual"]
"enum": ["push", "pull_request", "pull_request_closed", "tag", "deployment", "cron", "manual", "release"]
},
"event_constraint_list": {
"oneOf": [