MCPcopy Create free account
hub / github.com/actions/actions-runner-controller / RunScript

Method RunScript

testing/bash.go:22–33  ·  view source on GitHub ↗
(ctx context.Context, path string, cfg ScriptConfig)

Source from the content-addressed store, hash-verified

20}
21
22func (k *Bash) RunScript(ctx context.Context, path string, cfg ScriptConfig) error {
23 abs, err := filepath.Abs(path)
24 if err != nil {
25 return err
26 }
27
28 if _, err := k.CombinedOutput(k.bashRunScriptCmd(ctx, abs, cfg)); err != nil {
29 return err
30 }
31
32 return nil
33}
34
35func (k *Bash) bashRunScriptCmd(ctx context.Context, path string, cfg ScriptConfig) *exec.Cmd {
36 cmd := exec.CommandContext(ctx, "bash", path)

Callers 3

doMethod · 0.45
doArgoTunnelMethod · 0.45

Calls 2

bashRunScriptCmdMethod · 0.95
CombinedOutputMethod · 0.80

Tested by 3

doMethod · 0.36
doArgoTunnelMethod · 0.36