diff --git a/action.yml b/action.yml index c7f9b48..2bf6db3 100644 --- a/action.yml +++ b/action.yml @@ -82,6 +82,10 @@ inputs: description: "Comma-separated list of files to append to the prompt (e.g., 'AGENTS.md,CLAUDE.md')" required: false default: "" + skip-summary: + description: "Skip writing agent output to the job summary (useful when callers write their own summary)" + required: false + default: "false" outputs: exit-code: @@ -624,7 +628,8 @@ runs: echo "exit-code=$EXIT_CODE" >> $GITHUB_OUTPUT echo "execution-time=$EXECUTION_TIME" >> $GITHUB_OUTPUT - # Create job summary + # Create job summary (skipped when caller handles its own summary) + if [[ "${{ inputs.skip-summary }}" != "true" ]]; then { echo "## cagent Execution Summary" echo "" @@ -648,6 +653,7 @@ runs: echo "❌ **Status:** Failed" fi } >> $GITHUB_STEP_SUMMARY + fi if [[ "$DEBUG" == "true" ]]; then echo "::debug::Exit code: $EXIT_CODE" @@ -709,7 +715,7 @@ runs: if-no-files-found: ignore - name: Update job summary with cleaned output - if: always() + if: always() && inputs.skip-summary != 'true' shell: bash env: OUTPUT_FILE: ${{ steps.run-agent.outputs.output-file }} diff --git a/review-pr/action.yml b/review-pr/action.yml index 52d9c4d..1315e99 100644 --- a/review-pr/action.yml +++ b/review-pr/action.yml @@ -474,6 +474,7 @@ runs: mistral-api-key: ${{ inputs.mistral-api-key }} github-token: ${{ steps.resolve-token.outputs.token }} extra-args: ${{ inputs.model && format('--model={0}', inputs.model) || '' }} + skip-summary: "true" # ======================================== # BUILD REVIEW CONTEXT @@ -563,6 +564,7 @@ runs: extra-args: ${{ inputs.model && format('--model={0}', inputs.model) || '' }} add-prompt-files: ${{ inputs.add-prompt-files }} max-retries: "0" # Disable retries — the review agent recovers internally (root falls back when sub-agents fail), so retrying the pipeline produces duplicate reviews + skip-summary: "true" - name: Save reviewer memory if: always()