From e5ecba5388c8e5ceeb636a5449d278b221b850b1 Mon Sep 17 00:00:00 2001 From: yanas Date: Wed, 11 Mar 2026 22:07:51 -0500 Subject: [PATCH] fix: use heredoc format for multi-line GITHUB_OUTPUT Single-line echo cannot set multi-line values in GITHUB_OUTPUT. Also strip newlines from the response to keep the output on one line. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/pr-classify.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-classify.yml b/.github/workflows/pr-classify.yml index 8b7ad7f..1e33918 100644 --- a/.github/workflows/pr-classify.yml +++ b/.github/workflows/pr-classify.yml @@ -77,8 +77,10 @@ jobs: messages: [{role: "user", content: $prompt}] }')") - OUTPUT=$(echo "$RESPONSE" | jq -r '.content[0].text') - echo "output=$OUTPUT" >> $GITHUB_OUTPUT + OUTPUT=$(echo "$RESPONSE" | jq -r '.content[0].text' | tr -d '\n') + echo "output<> $GITHUB_OUTPUT + echo "$OUTPUT" >> $GITHUB_OUTPUT + echo "EOF_DELIMITER" >> $GITHUB_OUTPUT - name: Apply labels and post comment if: always()