Skip to content

Commit 0f36edb

Browse files
authored
[CI] Post coverage artifact link to PR (#490)
1 parent 3476e2d commit 0f36edb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ubuntu.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,17 @@ jobs:
390390
with:
391391
files: coverage.xml
392392
- name: Upload coverage report artifact
393+
id: upload-cov
393394
uses: actions/upload-artifact@v4
394395
with:
395396
name: cov-report
396397
path: 'cov-report'
398+
- name: Comment coverage report link
399+
if: ${{ github.event_name == 'pull_request' }}
400+
uses: peter-evans/create-or-update-comment@v4
401+
with:
402+
token: ${{ secrets.GITHUB_TOKEN }}
403+
issue-number: ${{ github.event.pull_request.number }}
404+
body: |
405+
Coverage report is available for download
406+
[here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})

0 commit comments

Comments
 (0)