diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c1c6bab..520dbaa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,10 +65,13 @@ jobs: targetdir: '${{ github.workspace }}/coveragereport' reporttypes: 'MarkdownSummaryGithub' + - uses: 8BitJonny/gh-get-current-pr@3.0.0 + id: pr-check + # https://github.com/danielpalme/ReportGenerator/issues/431 - name: Publish coverage summary uses: marocchino/sticky-pull-request-comment@v2 - if: ${{ github.event_name == 'pull_request' }} + if: steps.pr-check.outputs.pr_found == 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: