Skip to content

Commit

Permalink
fix: add gh workflow api logging
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Oct 30, 2024
1 parent dff7635 commit 2e0ea0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cd/manager/repository/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2e0ea0a

Please sign in to comment.