properly format new .drone.yml in verify-drone (#58436) (#58452)

(cherry picked from commit d593aede3d)

Co-authored-by: Dan Cech <dcech@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-11-08 10:41:52 -05:00
committed by GitHub
co-authored by Dan Cech
parent a6faa45073
commit 68882a861a
+3
View File
@@ -39,6 +39,9 @@ func VerifyDrone(c *cli.Context) error {
for _, flag := range starlark.Command.Flags {
flag.Apply(flags)
}
if err := flags.Set("format", "true"); err != nil {
return err
}
cStarlark := cliv1.NewContext(cliv1.NewApp(), flags, nil)
action := starlark.Command.Action.(func(*cliv1.Context))
action(cStarlark)