You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-15 01:34:21 +02:00
fix(blobs): do not upload artifacts if ids is set to empty (#4921)
<!-- Hi, thanks for contributing! Please make sure you read our CONTRIBUTING guide. Also, add tests and the respective documentation changes as well. --> <!-- If applied, this commit will... --> Closes https://github.com/goreleaser/goreleaser/issues/4920 <!-- Why is this change being made? --> ... <!-- # Provide links to any relevant tickets, URLs or other resources --> ...
This commit is contained in:
@ -111,7 +111,7 @@ func doUpload(ctx *context.Context, conf config.Blob) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
filter := artifact.Or(byTypes...)
|
filter := artifact.Or(byTypes...)
|
||||||
if len(conf.IDs) > 0 {
|
if conf.IDs != nil {
|
||||||
filter = artifact.And(filter, artifact.ByIDs(conf.IDs...))
|
filter = artifact.And(filter, artifact.ByIDs(conf.IDs...))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user