Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,13 @@ runs:
if jq -e . "${TEMP_STDERR}" >/dev/null 2>&1; then
ERROR_JSON=$(jq -c '.error // empty' "${TEMP_STDERR}")
fi
if ! { jq -e . "${TEMP_STDERR}" >/dev/null 2>&1 && jq -e . "${TEMP_STDOUT}" >/dev/null 2>&1; }; then
if ! jq -e . "${TEMP_STDOUT}" >/dev/null 2>&1; then
echo "::warning::Gemini CLI output was not valid JSON"
# If we failed to parse JSON and the command didn't fail, this is likely a silent failure (e.g. resource limit)
if [[ "${FAILED}" == "false" ]]; then
echo "::error title=Gemini CLI execution failed::Gemini CLI produced invalid or empty JSON output, which usually indicates a silent failure."
FAILED=true
fi
fi


Expand Down
Loading