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:
parent
c94e0b79f6
commit
032024571c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user