1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-11-06 09:09:29 +02:00

fix: do not log release published if it is a draft (#4691)

it's a bit scary

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
世界
2024-03-15 01:47:08 +00:00
committed by GitHub
parent e1a33dc26d
commit 6f356ffcfa

View File

@@ -106,7 +106,7 @@ func (Pipe) Publish(ctx *context.Context) error {
if err := doPublish(ctx, c); err != nil {
return err
}
log.WithField("url", ctx.ReleaseURL).Info("published")
log.WithField("url", ctx.ReleaseURL).WithField("published", !ctx.Config.Release.Draft).Info("release created/updated")
return nil
}