mirror of
https://github.com/data-privacy-stack/presidio.git
synced 2026-07-23 11:20:55 -05:00
fix(ci): guard coverage PR comment step against non-PR contexts (#1921)
Agent-Logs-Url: https://github.com/microsoft/presidio/sessions/6d5867f9-157e-432e-8479-5987a01154b9 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: SharonHart <15013757+SharonHart@users.noreply.github.com>
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -155,7 +155,7 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Comment PR with Coverage
|
||||
if: matrix.python-version == env.PRIMARY_PYTHON
|
||||
if: matrix.python-version == env.PRIMARY_PYTHON && github.event_name == 'pull_request'
|
||||
uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
Reference in New Issue
Block a user