From 8e46deaba3e3630bf38734920dc0b0e77d0193cd Mon Sep 17 00:00:00 2001 From: Daniel Mikusa Date: Thu, 14 Apr 2022 12:39:51 -0400 Subject: [PATCH] Adds debugging Signed-off-by: Daniel Mikusa --- actions/draft-release/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/actions/draft-release/main.go b/actions/draft-release/main.go index 0073fe01..2c372bb9 100644 --- a/actions/draft-release/main.go +++ b/actions/draft-release/main.go @@ -66,9 +66,12 @@ func main() { body := buf.String() name := payload.Release.Name + fmt.Println("PrimaryBuildpack Name:", payload.PrimaryBuildpack.Info.Name, "]") if payload.PrimaryBuildpack.Info.Name != "" { + fmt.Println("it's not empty") name = fmt.Sprintf("%s %s", payload.PrimaryBuildpack.Info.Name, payload.Release.Name) } + fmt.Println("Name:", name) fullRepo, found := os.LookupEnv("GITHUB_REPOSITORY") if !found { @@ -87,6 +90,9 @@ func main() { Name: &name, Body: &body, } + fmt.Println("owner:", owner, "repo:", repo, "releaseId:", releaseId) + fmt.Println("repoRelease:", repoRelease) + fmt.Println("body:", body) if _, dryRun := inputs["dry_run"]; dryRun { fmt.Println("Title:", name)