1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-16 03:52:12 +02:00

adaptes error check on gitlab release creation

This commit is contained in:
Manuel Vogel 2019-06-11 22:50:14 +02:00
parent c94e0b79f6
commit 032024571c
No known key found for this signature in database
GPG Key ID: 24E54F214569A8A5

View File

@ -61,9 +61,10 @@ func (c *gitlabClient) CreateRelease(ctx *context.Context, body string) (release
name := title
tagName := ctx.Git.CurrentTag
release, resp, err := c.client.Releases.GetRelease(projectID, tagName)
if err != nil && resp.StatusCode == 403 {
if err != nil {
log.WithFields(log.Fields{
"err": err.Error(),
"err": err.Error(),
"statusCode": resp.StatusCode,
}).Debug("get release")
description := body