[Add] More logging for default push action (#383)

This commit is contained in:
David Beck 2020-10-08 22:28:01 -07:00 committed by GitHub
parent 3d9b82515c
commit 569ebaccae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -107,6 +107,10 @@ type workflowPlanner struct {
// PlanEvent builds a new list of runs to execute in parallel for an event name
func (wp *workflowPlanner) PlanEvent(eventName string) *Plan {
plan := new(Plan)
if len(wp.workflows) == 0 {
log.Debugf("no events found for workflow: %s", eventName)
}
for _, w := range wp.workflows {
for _, e := range w.On() {
if e == eventName {
@ -120,6 +124,10 @@ func (wp *workflowPlanner) PlanEvent(eventName string) *Plan {
// PlanJob builds a new run to execute in parallel for a job name
func (wp *workflowPlanner) PlanJob(jobName string) *Plan {
plan := new(Plan)
if len(wp.workflows) == 0 {
log.Debugf("no jobs found for workflow: %s", jobName)
}
for _, w := range wp.workflows {
plan.mergeStages(createStages(w, jobName))
}