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

fix: log when no artifacts match for signing

This commit is contained in:
Carlos Alexandro Becker 2023-04-28 01:07:38 +00:00
parent cbca47dcad
commit 30fc74df24
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -128,6 +128,10 @@ func (Pipe) Run(ctx *context.Context) error {
}
func sign(ctx *context.Context, cfg config.Sign, artifacts []*artifact.Artifact) error {
if len(artifacts) == 0 {
log.Warn("no artifacts matching the given filters found")
return nil
}
for _, a := range artifacts {
if err := a.Refresh(); err != nil {
return err