GetExecutionSteps returns the GitHub Actions steps for executing Crush
(workflowData *WorkflowData, logFile string)
| 138 | |
| 139 | // GetExecutionSteps returns the GitHub Actions steps for executing Crush |
| 140 | func (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. |