mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 10:21:00 +00:00
fix event flag for secret add
This commit is contained in:
parent
9cc0189f01
commit
15f5b8f414
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ func secretCreate(c *cli.Context) error {
|
||||||
Name: c.String("name"),
|
Name: c.String("name"),
|
||||||
Value: c.String("value"),
|
Value: c.String("value"),
|
||||||
Images: c.StringSlice("image"),
|
Images: c.StringSlice("image"),
|
||||||
Events: c.StringSlice("events"),
|
Events: c.StringSlice("event"),
|
||||||
}
|
}
|
||||||
if len(secret.Events) == 0 {
|
if len(secret.Events) == 0 {
|
||||||
secret.Events = defaultSecretEvents
|
secret.Events = defaultSecretEvents
|
||||||
|
|
Loading…
Reference in a new issue