mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-25 17:06:51 +00:00
fix event flag for secret add
This commit is contained in:
@@ -50,7 +50,7 @@ func secretCreate(c *cli.Context) error {
|
||||
Name: c.String("name"),
|
||||
Value: c.String("value"),
|
||||
Images: c.StringSlice("image"),
|
||||
Events: c.StringSlice("events"),
|
||||
Events: c.StringSlice("event"),
|
||||
}
|
||||
if len(secret.Events) == 0 {
|
||||
secret.Events = defaultSecretEvents
|
||||
|
Reference in New Issue
Block a user