mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-11 13:38:41 +02:00
fix: trim spaces from aur private key (#2930)
I had this issue on a repo, and it seems at least one more person had it too: ssh/git complaining that the key is invalid. My guess is that gh secret set from a file is now appending a new line - as it worked with the exact same key before, for me at least. anyway, if thats it, this pr should fix it. closes https://github.com/goreleaser/goreleaser-action/issues/326 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
d295d0bdff
commit
f640deb104
@ -361,7 +361,7 @@ func doPublish(ctx *context.Context, pkgs []*artifact.Artifact) error {
|
||||
return err
|
||||
}
|
||||
|
||||
key, err = keyPath(key)
|
||||
key, err = keyPath(strings.TrimSpace(key))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user