1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-07 13:31:37 +02:00

fix: improve github cli log

This commit is contained in:
Carlos A Becker 2022-04-11 09:47:14 -03:00
parent e60965ecd3
commit 7082217206
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -244,7 +244,10 @@ func (c *githubClient) CreateRelease(ctx *context.Context, body string) (string,
data,
)
}
log.WithField("url", release.GetHTMLURL()).Info("release updated")
if err != nil {
log.WithField("url", release.GetHTMLURL()).Info("release updated")
}
githubReleaseID := strconv.FormatInt(release.GetID(), 10)
return githubReleaseID, err
}