From 487c055ed256d9ce24b1e5e38dc6cc152ff17d12 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Fri, 7 Feb 2025 09:24:03 -0600 Subject: [PATCH] PYTHON-5047 Do not run publish job on forks --- .github/workflows/release-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: