fix(cli): allow empty schedule to clear it
ci/woodpecker/push/build_experimental unknown status
Details
ci/woodpecker/push/lint unknown status
Details
ci/woodpecker/push/test unknown status
Details
ci/woodpecker/push/docs Pipeline was successful
Details
ci/woodpecker/push/arch Pipeline was successful
Details
ci/woodpecker/push/build Pipeline was successful
Details
ci/woodpecker/push/docker Pipeline was successful
Details
ci/woodpecker/push/deploy Pipeline was successful
Details
ci/woodpecker/push/build_experimental unknown status
Details
ci/woodpecker/push/lint unknown status
Details
ci/woodpecker/push/test unknown status
Details
ci/woodpecker/push/docs Pipeline was successful
Details
ci/woodpecker/push/arch Pipeline was successful
Details
ci/woodpecker/push/build Pipeline was successful
Details
ci/woodpecker/push/docker Pipeline was successful
Details
ci/woodpecker/push/deploy Pipeline was successful
Details
parent
0b050a81db
commit
5cde3d0235
|
@ -166,7 +166,7 @@ fn remove(conf Config, id_prefix string) ? {
|
|||
fn patch(conf Config, id_prefix string, params map[string]string) ? {
|
||||
// We check the cron expression first because it's useless to send an
|
||||
// invalid one to the server.
|
||||
if 'schedule' in params {
|
||||
if 'schedule' in params && params['schedule'] != '' {
|
||||
parse_expression(params['schedule']) or {
|
||||
return error('Invalid cron expression: $err.msg()')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue