Skip to content

Commit 4873b7e

Browse files
committed
test
1 parent a05d1f0 commit 4873b7e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,18 @@ jobs:
4343
else
4444
echo "No open pull request found for this branch."
4545
fi
46+
- name: find if coverage report is already present
47+
uses: peter-evans/find-comment@v3
48+
id: fc
49+
with:
50+
issue-number: ${{ env.pull_request_id }}
51+
comment-author: 'github-actions[bot]'
52+
body-includes: 'Total test coverage: '
4653
- name: post coverage report
4754
uses: peter-evans/create-or-update-comment@v4
4855
with:
4956
token: ${{ secrets.GITHUB_TOKEN }}
5057
issue-number: ${{ env.pull_request_id }}
51-
body: '```${{ fromJSON(steps.coverage.outputs.report) }}```'
58+
comment-id: ${{ steps.fc.outputs.comment-id }}
59+
body: '```\n${{ fromJSON(steps.coverage.outputs.report) }}\n```'
5260
edit-mode: replace

0 commit comments

Comments
 (0)