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
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,15 @@ runs:
id: 'gemini_run'
run: |-
set -e

# Unset GEMINI_API_KEY if empty
if [ -z "${GEMINI_API_KEY}" ]; then
unset GEMINI_API_KEY
fi

# Run Gemini CLI with the provided prompt
GEMINI_RESPONSE=$(gemini --yolo --prompt "${PROMPT}")

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