From a220aa64dbcd31b0e3a87c3745a5f9f707e917a2 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Wed, 25 Jun 2025 14:56:13 +0200 Subject: [PATCH] Add PR comment with coverage link --- .github/workflows/ubuntu.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 05d3677b0..c605e5bdd 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -390,7 +390,17 @@ jobs: with: files: coverage.xml - name: Upload coverage report artifact + id: upload-cov uses: actions/upload-artifact@v4 with: name: cov-report path: 'cov-report' + - name: Comment coverage report link + if: ${{ github.event_name == 'pull_request' }} + uses: peter-evans/create-or-update-comment@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.pull_request.number }} + body: | + Coverage report is available for download + [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})