From 2e0ea0a11de81f7a6e4b935007c43549a2192aad Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:13:02 -0400 Subject: [PATCH] fix: add gh workflow api logging --- cd/manager/repository/github.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cd/manager/repository/github.go b/cd/manager/repository/github.go index a586173..1f136bb 100644 --- a/cd/manager/repository/github.go +++ b/cd/manager/repository/github.go @@ -148,7 +148,9 @@ func (g Github) FindMatchingWorkflowRun(workflow job.Workflow, jobId string, sea return -1, "", err } else if count > 0 { for _, workflowJob := range workflowJobs { + log.Printf("findMatchingWorkflowRun: run=%s, job=%s", workflowRun.GetHTMLURL(), workflowJob.GetHTMLURL()) for _, jobStep := range workflowJob.Steps { + log.Printf("findMatchingWorkflowRun: job=%s, step=%s", workflowJob.GetHTMLURL(), jobStep.GetName()) // If we found a job step with our job ID, then we know this is the workflow we're looking for // and need to monitor. if jobStep.GetName() == jobId {