Skip to content

Commit

Permalink
Post coverage comment only on Pull_request (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze authored Nov 24, 2024
1 parent 94dff12 commit e4bc44c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,16 @@ jobs:

- name: Coverage comment
id: coverage_comment
if: github.event_name == 'pull_request'
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Store Pull Request comment to be posted
uses: actions/upload-artifact@v4
if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
if: |
github.event_name == 'pull_request'
&& steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
with:
name: python-coverage-comment-action
path: python-coverage-comment-action.txt
Expand Down

0 comments on commit e4bc44c

Please sign in to comment.