Skip to content

Commit f370eea

Browse files
authored
PYTHON-5047 Do not run publish job on forks (#276)
1 parent 48f6601 commit f370eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156
publish:
157157
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
158158
needs: [collect_dist]
159-
if: ${{ github.event_name != 'pull_request'}}
159+
if: github.repository_owner == 'mongodb' || github.event_name == 'workflow_dispatch'
160160
runs-on: ubuntu-latest
161161
environment: release
162162
permissions:

0 commit comments

Comments
 (0)