Skip to content

Commit 4b3632c

Browse files
authored
fix: add skip-summary input to prevent GITHUB_STEP_SUMMARY exceeding 1MB limit (#81)
1 parent 4a1bda4 commit 4b3632c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ inputs:
8282
description: "Comma-separated list of files to append to the prompt (e.g., 'AGENTS.md,CLAUDE.md')"
8383
required: false
8484
default: ""
85+
skip-summary:
86+
description: "Skip writing agent output to the job summary (useful when callers write their own summary)"
87+
required: false
88+
default: "false"
8589

8690
outputs:
8791
exit-code:
@@ -624,7 +628,8 @@ runs:
624628
echo "exit-code=$EXIT_CODE" >> $GITHUB_OUTPUT
625629
echo "execution-time=$EXECUTION_TIME" >> $GITHUB_OUTPUT
626630
627-
# Create job summary
631+
# Create job summary (skipped when caller handles its own summary)
632+
if [[ "${{ inputs.skip-summary }}" != "true" ]]; then
628633
{
629634
echo "## cagent Execution Summary"
630635
echo ""
@@ -648,6 +653,7 @@ runs:
648653
echo "❌ **Status:** Failed"
649654
fi
650655
} >> $GITHUB_STEP_SUMMARY
656+
fi
651657
652658
if [[ "$DEBUG" == "true" ]]; then
653659
echo "::debug::Exit code: $EXIT_CODE"
@@ -709,7 +715,7 @@ runs:
709715
if-no-files-found: ignore
710716

711717
- name: Update job summary with cleaned output
712-
if: always()
718+
if: always() && inputs.skip-summary != 'true'
713719
shell: bash
714720
env:
715721
OUTPUT_FILE: ${{ steps.run-agent.outputs.output-file }}

review-pr/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ runs:
474474
mistral-api-key: ${{ inputs.mistral-api-key }}
475475
github-token: ${{ steps.resolve-token.outputs.token }}
476476
extra-args: ${{ inputs.model && format('--model={0}', inputs.model) || '' }}
477+
skip-summary: "true"
477478

478479
# ========================================
479480
# BUILD REVIEW CONTEXT
@@ -563,6 +564,7 @@ runs:
563564
extra-args: ${{ inputs.model && format('--model={0}', inputs.model) || '' }}
564565
add-prompt-files: ${{ inputs.add-prompt-files }}
565566
max-retries: "0" # Disable retries — the review agent recovers internally (root falls back when sub-agents fail), so retrying the pipeline produces duplicate reviews
567+
skip-summary: "true"
566568

567569
- name: Save reviewer memory
568570
if: always()

0 commit comments

Comments
 (0)