fix: use proper logger info function instead if print

This commit is contained in:
Robert Kaussow 2022-06-02 14:26:47 +02:00
parent bd8a7ffab9
commit 29243448f0
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -92,12 +92,12 @@ func (p *Plugin) Validate() error {
p.settings.Build.TagsSuffix,
)
if err != nil {
logrus.Printf("cannot generate tags from %s, invalid semantic version", p.settings.Build.Ref)
logrus.Infof("cannot generate tags from %s, invalid semantic version", p.settings.Build.Ref)
return err
}
p.settings.Build.Tags = *cli.NewStringSlice(tag...)
} else {
logrus.Printf("skip auto-tagging for %s, not on default branch or tag", p.settings.Build.Ref)
logrus.Infof("skip auto-tagging, not on default branch or tag")
return nil
}
}