MCPcopy
hub / github.com/nektos/act / ReadWorkflow

Function ReadWorkflow

pkg/model/workflow.go:714–723  ·  view source on GitHub ↗

ReadWorkflow returns a list of jobs for a given workflow file reader

(in io.Reader, strict bool)

Source from the content-addressed store, hash-verified

712
713// ReadWorkflow returns a list of jobs for a given workflow file reader
714func ReadWorkflow(in io.Reader, strict bool) (*Workflow, error) {
715 if strict {
716 w := new(WorkflowStrict)
717 err := yaml.NewDecoder(in).Decode(w)
718 return (*Workflow)(w), err
719 }
720 w := new(Workflow)
721 err := yaml.NewDecoder(in).Decode(w)
722 return w, err
723}
724
725// GetJob will get a job by name in the workflow
726func (w *Workflow) GetJob(jobID string) *Job {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…