Skip to content

Commit

Permalink
Make code coverage report comment only on PR builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff authored May 4, 2024
1 parent d75c072 commit 9b65a5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/frameworkTesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:

# Source: https://stackoverflow.com/a/70655285
- name: Read coverage report to variable
if: github.event_name == 'pull_request'
id: read_md
run: |
echo 'COV_MD<<EOF' >> $GITHUB_OUTPUT
Expand All @@ -52,6 +53,7 @@ jobs:
- name: Add code coverage PR comment
uses: actions/github-script@v6
if: github.event_name == 'pull_request'
with:
script: |
github.rest.issues.createComment({
Expand Down

0 comments on commit 9b65a5f

Please sign in to comment.