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

Method setupShellCommandExecutor

pkg/runner/step_run.go:72–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72func (sr *stepRun) setupShellCommandExecutor() common.Executor {
73 return func(ctx context.Context) error {
74 scriptName, script, err := sr.setupShellCommand(ctx)
75 if err != nil {
76 return err
77 }
78
79 rc := sr.getRunContext()
80 return rc.JobContainer.Copy(rc.JobContainer.GetActPath(), &container.FileEntry{
81 Name: scriptName,
82 Mode: 0o755,
83 Body: script,
84 })(ctx)
85 }
86}
87
88func getScriptName(rc *RunContext, step *model.Step) string {
89 scriptName := step.ID

Callers 1

mainMethod · 0.95

Calls 4

setupShellCommandMethod · 0.95
getRunContextMethod · 0.95
CopyMethod · 0.65
GetActPathMethod · 0.65

Tested by

no test coverage detected