Skip to content

Commit

Permalink
Update coverage job to run in the right conditions (#5183)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcruickshank committed Sep 9, 2023
1 parent 78eae3a commit f6c0758
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,12 @@ jobs:
with:
name: html-report
path: htmlcov
if: ${{ failure() }}
if: failure() && github.event_name == 'pull_request'

- name: Update PR Comment.
- name: Update PR comment with coverage report.
uses: actions/github-script@v6
# Run even if the coverage step failed.
if: github.event_name == 'pull_request'
if: always() && github.event_name == 'pull_request'
with:
script: |
// First list the existing comments
Expand Down

0 comments on commit f6c0758

Please sign in to comment.