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

Method GetPreBundleSteps

pkg/workflow/gemini_engine.go:144–152  ·  view source on GitHub ↗

GetPreBundleSteps returns a step that moves Gemini CLI error reports from /tmp/ into tmp/gh-aw/ before the unified artifact upload. This keeps all artifact paths under tmp/gh-aw/ so that actions/upload-artifact computes the correct least-common-ancestor path and downstream jobs find files at the exp

(workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

142// /tmp/gh-aw/ so that actions/upload-artifact computes the correct least-common-ancestor
143// path and downstream jobs find files at the expected locations.
144func (e *GeminiEngine) GetPreBundleSteps(workflowData *WorkflowData) []GitHubActionStep {
145 return []GitHubActionStep{
146 {
147 " - name: Move Gemini error files to artifact directory",
148 " if: always()",
149 " run: mv /tmp/gemini-client-error-*.json /tmp/gh-aw/ 2>/dev/null || true",
150 },
151 }
152}
153
154// GetExecutionSteps returns the GitHub Actions steps for executing Gemini
155func (e *GeminiEngine) GetExecutionSteps(workflowData *WorkflowData, logFile string) []GitHubActionStep {

Callers 1

TestGeminiEngineFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestGeminiEngineFunction · 0.76