mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-06 03:13:48 +02:00
Revert "fix: draft release when no existing draft release exists"
This reverts commit 0b3305999c
.
This commit is contained in:
parent
0b3305999c
commit
0b37b4dfbd
@ -218,7 +218,7 @@ func (c *githubClient) findDraftRelease(ctx *context.Context) (*github.Repositor
|
||||
return nil, err
|
||||
}
|
||||
for _, r := range releases {
|
||||
if r.GetTagName() == ctx.Git.CurrentTag {
|
||||
if r.TagName == &ctx.Git.CurrentTag {
|
||||
return r, nil
|
||||
}
|
||||
}
|
||||
@ -227,7 +227,7 @@ func (c *githubClient) findDraftRelease(ctx *context.Context) (*github.Repositor
|
||||
}
|
||||
opts.Page = resp.NextPage
|
||||
}
|
||||
return nil, fmt.Errorf("no existing draft release found for %s", ctx.Git.CurrentTag)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *githubClient) CreateRelease(ctx *context.Context, body string) (string, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user