mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
refactor: lint issues, style
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
d85fff06a2
commit
1435e2bcc5
@ -86,14 +86,12 @@ func doRun(ctx *context.Context, client client.Client) error {
|
||||
|
||||
if ctx.SkipPublish {
|
||||
return pipe.ErrSkipPublishEnabled
|
||||
|
||||
}
|
||||
if strings.TrimSpace(ctx.Config.Scoop.SkipUpload) == "true" {
|
||||
return pipe.Skip("scoop.skip_upload is true")
|
||||
} else if strings.TrimSpace(ctx.Config.Scoop.SkipUpload) == "auto" {
|
||||
if ctx.Semver.Prerelease != "" {
|
||||
return pipe.Skip("release is prerelease")
|
||||
}
|
||||
}
|
||||
if strings.TrimSpace(ctx.Config.Scoop.SkipUpload) == "auto" && ctx.Semver.Prerelease != "" {
|
||||
return pipe.Skip("release is prerelease")
|
||||
}
|
||||
if ctx.Config.Release.Draft {
|
||||
return pipe.Skip("release is marked as draft")
|
||||
|
Loading…
x
Reference in New Issue
Block a user