diff --git a/drone/secret_add.go b/drone/secret_add.go index e8d14c91e..fe5d3b461 100644 --- a/drone/secret_add.go +++ b/drone/secret_add.go @@ -55,7 +55,7 @@ func secretCreate(c *cli.Context) error { if len(secret.Events) == 0 { secret.Events = defaultSecretEvents } - _, err = client.SecretUpdate(owner, name, secret) + _, err = client.SecretCreate(owner, name, secret) return err }