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:
Copilot
2026-03-29 14:06:04 +03:00
committed by GitHub
parent 414580134e
commit aed1e5947f

View File

@@ -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 }}