Skip to content

fix: skip output evaluation when capture-output is disabled#48

Merged
raphaeltm merged 1 commit into
mainfrom
fix/outputs-conditional-capture
Jun 17, 2026
Merged

fix: skip output evaluation when capture-output is disabled#48
raphaeltm merged 1 commit into
mainfrom
fix/outputs-conditional-capture

Conversation

@simple-agent-manager

Copy link
Copy Markdown
Contributor

Summary

  • Fixes GHA Maximum object size exceeded error that occurs even with capture-output: false
  • The composite action's outputs block always evaluates ${{ steps.command.outputs.stdout }}, and GHA's template engine OOMs on the step context from large deployments
  • Adds a forward-output step that is skipped when capture-output is false, so the expression in outputs references a step with no outputs → evaluates to empty

Context

PR #47 added capture-output: false to skip writing stdout to $GITHUB_OUTPUT, but the outputs: block still referenced steps.command.outputs.stdout. GHA evaluates this expression after all steps complete, and it hits the memory limit on the step context from large Pulumi deployments (Portal has 6 services with verbose logs).

Test plan

  • CI passes (existing test workflow)
  • Portal deploy with capture-output: false succeeds without OOM error

🤖 Generated with Claude Code

The outputs block in composite actions always evaluates its expressions,
even when the step output is empty. GHA's template engine hits a memory
limit processing the step context from large deployments.

Fix by referencing a forwarding step that is skipped entirely when
capture-output is false, preventing the expression evaluation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simple-agent-manager simple-agent-manager Bot requested a review from a team as a code owner June 17, 2026 15:28
@raphaeltm raphaeltm merged commit c34f401 into main Jun 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant