From be1e7e16cdd438d789b044d0fbd9a90a75b68f82 Mon Sep 17 00:00:00 2001 From: Nick Williams Date: Tue, 15 Oct 2024 17:14:35 -0700 Subject: [PATCH] chore: more debug output --- internal/actions/runWorkflow.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/actions/runWorkflow.go b/internal/actions/runWorkflow.go index beb3008..f844d35 100644 --- a/internal/actions/runWorkflow.go +++ b/internal/actions/runWorkflow.go @@ -20,6 +20,7 @@ import ( ) func RunWorkflow() error { + fmt.Println("foo") g, err := initAction() if err != nil { return err @@ -65,6 +66,8 @@ func RunWorkflow() error { if pr != nil { os.Setenv("GH_PULL_REQUEST", *pr.URL) + fmt.Println(fmt.Sprintf("Grabbing PR URL: %s", *pr.URL)) + logging.Info("Grabbing PR URL: %s", *pr.URL) logging.Info("PR HTML URL: %s", *pr.HTMLURL) } @@ -199,6 +202,8 @@ func RunWorkflow() error { success = true + fmt.Println(fmt.Sprintf("GH_PULL_REQUEST: %s", os.Getenv("GH_PULL_REQUEST"))) + return nil } @@ -261,7 +266,7 @@ func finalize(inputs finalizeInputs) error { return err } - if pr.URL != nil { + if pr != nil { os.Setenv("GH_PULL_REQUEST", *pr.URL) logging.Info("Grabbing PR URL: %s", *pr.URL) logging.Info("PR HTML URL: %s", *pr.HTMLURL)