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

skipped as an error type

This commit is contained in:
Carlos Alexandro Becker
2017-08-20 16:35:46 -03:00
parent 429d42bf0b
commit e8da61278f
11 changed files with 73 additions and 29 deletions

View File

@ -13,6 +13,7 @@ import (
"github.com/apex/log"
"github.com/goreleaser/goreleaser/context"
"github.com/goreleaser/goreleaser/internal/git"
"github.com/goreleaser/goreleaser/pipeline"
)
// Pipe for brew deployment
@ -43,8 +44,7 @@ func (Pipe) Run(ctx *context.Context) (err error) {
return
}
if !ctx.Validate {
log.Warn("skipped validations because --skip-validate is set")
return nil
return pipeline.Skip("--skip-validate is set")
}
return validate(ctx, commit, tag)
}