You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action.yml
+34-4Lines changed: 34 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -316,7 +316,7 @@ runs:
316
316
if [[ -n "${GOOGLE_CLOUD_ACCESS_TOKEN:-}" ]]; then
317
317
unset GEMINI_API_KEY
318
318
unset GOOGLE_API_KEY
319
-
# Unset credential file pointers that might cause conflicts with the access token.
319
+
# Unset credential file pointers that might cause conflicts with the access token and hang.
320
320
unset CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE
321
321
unset GOOGLE_GHA_CREDS_PATH
322
322
elif [[ "${GOOGLE_GENAI_USE_VERTEXAI:-false}" == "true" && -n "${GOOGLE_API_KEY:-}" ]]; then
@@ -332,16 +332,32 @@ runs:
332
332
# We capture stdout (JSON) to TEMP_STDOUT and stderr to TEMP_STDERR
333
333
if [[ "${GEMINI_DEBUG}" = true ]]; then
334
334
echo "::warning::Gemini CLI debug logging is enabled. This will stream responses, which could reveal sensitive information if processed with untrusted inputs."
335
+
echo "::: Start Gemini CLI STDOUT :::"
335
336
if ! gemini --debug --yolo --prompt "${PROMPT}" --output-format json 2> >(tee "${TEMP_STDERR}" >&2) | tee "${TEMP_STDOUT}"; then
336
337
FAILED=true
337
338
fi
339
+
# Wait for async stderr logging to complete. This is because process substitution in Bash is async so let tee finish writing to ${TEMP_STDERR}
340
+
sleep 1
341
+
echo "::: End Gemini CLI STDOUT :::"
338
342
else
339
343
if ! gemini --yolo --prompt "${PROMPT}" --output-format json 2> "${TEMP_STDERR}" 1> "${TEMP_STDOUT}"; then
340
344
FAILED=true
341
345
fi
342
346
fi
343
347
348
+
# Create the artifacts directory and copy full logs
0 commit comments