feat: improve list (#786)

This commit is contained in:
Ryan
2021-08-30 15:38:03 +00:00
committed by GitHub
parent de44a505da
commit 37aaec81f4
3 changed files with 59 additions and 19 deletions

View File

@@ -186,6 +186,7 @@ func NewWorkflowPlanner(path string, noWorkflowRecurse bool) (WorkflowPlanner, e
return nil, err
}
workflow.File = wf.workflowFileInfo.Name()
if workflow.Name == "" {
workflow.Name = wf.workflowFileInfo.Name()
}

View File

@@ -15,6 +15,7 @@ import (
// Workflow is the structure of the files in .github/workflows
type Workflow struct {
File string
Name string `yaml:"name"`
RawOn yaml.Node `yaml:"on"`
Env map[string]string `yaml:"env"`