Skip to content

Commit 1b5f78e

Browse files
Fix CI workflow YAML coverage comment block
Co-authored-by: Chris Zetter <zetter-rpf@users.noreply.github.com>
1 parent 797990d commit 1b5f78e

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,19 @@ jobs:
127127
run_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
128128
129129
if [ "$coverage" = 'unavailable' ]; then
130-
message="### Test coverage
131-
SimpleCov coverage data was unavailable for this run.
132-
Run: $run_url"
130+
message=$(cat <<EOF
131+
### Test coverage
132+
SimpleCov coverage data was unavailable for this run.
133+
Run: $run_url
134+
EOF
135+
)
133136
else
134-
message="### Test coverage
135-
$coverage% line coverage reported by SimpleCov.
136-
Run: $run_url"
137+
message=$(cat <<EOF
138+
### Test coverage
139+
$coverage% line coverage reported by SimpleCov.
140+
Run: $run_url
141+
EOF
142+
)
137143
fi
138144
139145
{

0 commit comments

Comments
 (0)