From 8a62c6ad2e61a0f4c8006443d6ab115d8b1f58c0 Mon Sep 17 00:00:00 2001 From: Niko Fellner Date: Sat, 24 Jan 2026 23:56:53 +0100 Subject: [PATCH] fix: prevent stdout duplication when capture_stdout is enabled The previous implementation wrote command output to GITHUB_OUTPUT twice: 1. Via `tee -a "${GITHUB_OUTPUT}"` directly 2. Via the subshell redirect `} >>"${GITHUB_OUTPUT}"` This caused every line of captured output to appear twice. Fix: Change `tee -a "${GITHUB_OUTPUT}"` to `tee /dev/stderr` so that: - Real-time output is still visible in the Actions log (via stderr) - Output is only written once to GITHUB_OUTPUT (via subshell redirect) --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d5d56b6..ddd2b3b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -73,7 +73,7 @@ echo "=======================================" if [[ "${INPUT_CAPTURE_STDOUT}" == 'true' ]]; then { echo 'stdout<>"${GITHUB_OUTPUT}" else