From 5218255bdddce27f77b240362a5124970cf6b3de Mon Sep 17 00:00:00 2001 From: Carolyn Van Slyck Date: Thu, 21 Apr 2022 16:23:12 -0500 Subject: [PATCH] Fix bad draft flag When we run the create release command, we may pass in an empty flag, which needs to be pruned by CollapseArgs. Otherwise the command will fail because it thinks we are passing in a file to upload with the release (with a name of ""). Signed-off-by: Carolyn Van Slyck --- releases/publish.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/publish.go b/releases/publish.go index bc8c938..b4cbe39 100644 --- a/releases/publish.go +++ b/releases/publish.go @@ -194,7 +194,7 @@ func AddFilesToRelease(repo string, tag string, dir string) { } // Create the GH release - must.RunV("gh", "release", "create", "-R", repo, tag, "--notes=", draft) + must.Command("gh", "release", "create", "-R", repo, tag, "--notes=", draft).CollapseArgs().RunV() } // Upload the release assets and overwrite existing assets