1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: only log skips if something is actually being skipped

This commit is contained in:
Carlos Alexandro Becker 2023-09-23 04:28:03 +00:00
parent e194d4cfca
commit 41c21dc38f
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -240,9 +240,11 @@ func setupReleaseContext(ctx *context.Context, options releaseOpts) error {
skips.Set(ctx, skips.Announce)
}
log.Warnf(
logext.Warning("skipping %s..."),
skips.String(ctx),
)
if skips.Any(ctx, skips.Release...) {
log.Warnf(
logext.Warning("skipping %s..."),
skips.String(ctx),
)
}
return nil
}