Skip to content

Commit

Permalink
fix(run-pytest): Do not publish PR comment when build is not triggere…
Browse files Browse the repository at this point in the history
…d from a PR

- py-cov-action/python-coverage-comment-action does not handle it and crash
- it does not make sens anyway
  • Loading branch information
ducdetronquito committed Oct 7, 2024
1 parent 9b7e40d commit 00316ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
- name: Coverage comment
uses: py-cov-action/python-coverage-comment-action@v3
if: github.event.workflow_run.event == 'pull_request'
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }}
Expand Down

0 comments on commit 00316ed

Please sign in to comment.