Skip to content

Commit

Permalink
Change logic to check if PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayKMehta committed Feb 11, 2024
1 parent 089da74 commit 8abaeb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8abaeb3

Please sign in to comment.