diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 19248df0..43ab81fb 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -156,7 +156,7 @@ jobs: publish: # https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi needs: [collect_dist] - if: ${{ github.event_name != 'pull_request'}} + if: github.repository_owner == 'mongodb' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest environment: release permissions: