Skip to content
Closed
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
11 changes: 10 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,16 @@ runs:
fi

# Run Gemini CLI with the provided prompt
GEMINI_RESPONSE=$(gemini --yolo --prompt "${PROMPT}")
TEMP_OUTPUT=$(mktemp)
if gemini --yolo --debug --prompt "${PROMPT}" > "${TEMP_OUTPUT}" 2>&1; then
GEMINI_RESPONSE=$(cat "${TEMP_OUTPUT}")
else
echo "Error: Gemini CLI execution failed"
cat "${TEMP_OUTPUT}"
rm -f "${TEMP_OUTPUT}"
exit 1
fi
rm -f "${TEMP_OUTPUT}"

# Set the captured response as a step output, supporting multiline
echo "gemini_response<<EOF" >> "${GITHUB_OUTPUT}"
Expand Down
Loading