Skip to content

Commit e6f2678

Browse files
authored
fix(ci): Correctly handle multiline output in coverage comment (#79)
The previous method of setting the GitHub Actions output variable was failing due to special characters and multiline strings in the output of the python script. This change uses a heredoc to correctly handle the multiline output. AI-assisted-by: Gemini 2.5 Pro
1 parent dbdcde1 commit e6f2678

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,11 @@ jobs:
361361
id: pr_coverage_check
362362
run: |
363363
set -e
364-
echo "PR_COVERAGE_REPORT=$(./.github/scripts/check_pr_coverage.py ${{ github.base_ref }})" >> $GITHUB_OUTPUT
364+
{
365+
echo 'PR_COVERAGE_REPORT<<EOF'
366+
./.github/scripts/check_pr_coverage.py ${{ github.base_ref }}
367+
echo EOF
368+
} >> "$GITHUB_OUTPUT"
365369
366370
- name: Post Coverage Comment
367371
env:

0 commit comments

Comments
 (0)