Skip to content

Commit 34f4c8a

Browse files
feat(workflow): mark workloads as failed if they hit session limit
1 parent 05adea3 commit 34f4c8a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ runs:
189189
echo "${GEMINI_ERRORS}" >> "${GITHUB_OUTPUT}"
190190
echo "EOF" >> "${GITHUB_OUTPUT}"
191191
192+
if echo "${GEMINI_ERRORS}" | grep -q "Reached max session turns for this session"; then
193+
FAILED=true
194+
fi
195+
192196
if [[ "${FAILED}" = true ]]; then
193197
LAST_LINE="$(echo "${GEMINI_ERRORS}" | tail -n1)"
194198
echo "::error title=Gemini CLI execution failed::${LAST_LINE}"

0 commit comments

Comments
 (0)