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

This commit is contained in:
Dan Cech 2022-11-08 10:27:57 -05:00 committed by GitHub
parent 50a197014f
commit d593aede3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)