MCPcopy Create free account
hub / github.com/github/gh-aw / GetExecutionSteps

Method GetExecutionSteps

pkg/workflow/crush_engine.go:140–154  ·  view source on GitHub ↗

GetExecutionSteps returns the GitHub Actions steps for executing Crush

(workflowData *WorkflowData, logFile string)

Source from the content-addressed store, hash-verified

138
139// GetExecutionSteps returns the GitHub Actions steps for executing Crush
140func (e *CrushEngine) GetExecutionSteps(workflowData *WorkflowData, logFile string) []GitHubActionStep {
141 crushLog.Printf("Generating execution steps for Crush engine: workflow=%s, firewall=%v",
142 workflowData.Name, isFirewallEnabled(workflowData))
143
144 return e.BuildCLIEngineExecutionSteps(workflowData, logFile, UniversalCLIEngineExecutionConfig{
145 EngineConstant: constants.CrushEngine,
146 DefaultCommandName: "crush",
147 ExtraCLIArgs: []string{"--verbose"},
148 MCPConfigFile: ".crush.json",
149 StepName: "Execute Crush CLI",
150 ConfigStep: e.generateCrushConfigStep(workflowData),
151 ModelEnvVarName: constants.CrushCLIModelEnvVar,
152 WriteTimestamp: true,
153 })
154}
155
156// generateCrushConfigStep writes .crush.json with all permissions set to allow
157// to prevent CI hanging on permission prompts.

Callers 2

TestCrushEngineExecutionFunction · 0.95

Calls 4

isFirewallEnabledFunction · 0.85
PrintfMethod · 0.45

Tested by 2

TestCrushEngineExecutionFunction · 0.76