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)
| 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. |
| 144 | func (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 |
| 155 | func (e *GeminiEngine) GetExecutionSteps(workflowData *WorkflowData, logFile string) []GitHubActionStep { |
no outgoing calls