Skip to content

Commit f54aac3

Browse files
committed
fix
1 parent 7a440b6 commit f54aac3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
issue-number: ${{ env.pull_request_id }}
4747
comment-author: 'github-actions[bot]'
4848
body-includes: 'Total test coverage: '
49+
- name: make report text
50+
run: |
51+
coverage_report=$(echo "${{ fromJSON(steps.coverage.outputs.report) }}" | tr -d '\n')
52+
echo "coverage_report=$coverage_report" >> $GITHUB_ENV
4953
- name: post coverage report
5054
if: env.pull_request_id
5155
uses: peter-evans/create-or-update-comment@v4
@@ -55,6 +59,6 @@ jobs:
5559
comment-id: ${{ steps.fc.outputs.comment-id }}
5660
body: |
5761
```
58-
$( ${{ fromJSON(steps.coverage.outputs.report) }} | tr -d '\n')
62+
${{ env.coverage_report }}
5963
```
6064
edit-mode: replace

0 commit comments

Comments
 (0)