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

Function newReusableWorkflowExecutor

pkg/runner/reusable_workflow.go:116–135  ·  view source on GitHub ↗
(rc *RunContext, directory string, workflow string)

Source from the content-addressed store, hash-verified

114}
115
116func newReusableWorkflowExecutor(rc *RunContext, directory string, workflow string) common.Executor {
117 return func(ctx context.Context) error {
118 planner, err := model.NewWorkflowPlanner(path.Join(directory, workflow), true, false)
119 if err != nil {
120 return err
121 }
122
123 plan, err := planner.PlanEvent("workflow_call")
124 if err != nil {
125 return err
126 }
127
128 runner, err := NewReusableWorkflowRunner(rc)
129 if err != nil {
130 return err
131 }
132
133 return runner.NewPlanExecutor(plan)(ctx)
134 }
135}
136
137func NewReusableWorkflowRunner(rc *RunContext) (Runner, error) {
138 runner := &runnerImpl{

Calls 4

PlanEventMethod · 0.95
NewWorkflowPlannerFunction · 0.92
NewPlanExecutorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…