Skip to content

Commit f9de1a3

Browse files
committed
fix logic for running the publish step
1 parent 9665226 commit f9de1a3

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.repository_owner == 'mongodb-labs' || github.event_name == 'workflow_dispatch'
159+
if: (github.repository_owner == 'mongodb-labs' != github.event_name == 'pull_request') || github.event_name == 'workflow_dispatch'
160160
runs-on: ubuntu-latest
161161
environment: release
162162
permissions:

0 commit comments

Comments
 (0)