From 73d7c9c1dae25bd8c26d2c570feebad33acf7575 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Wed, 29 Mar 2023 22:11:05 +0530 Subject: [PATCH] #5180 do not run publish-to-test-pypi on forks --- .github/workflows/ci-wheels.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-wheels.yml b/.github/workflows/ci-wheels.yml index a00833b118..7e6b34f282 100644 --- a/.github/workflows/ci-wheels.yml +++ b/.github/workflows/ci-wheels.yml @@ -132,7 +132,8 @@ jobs: name: "publish to test.pypi" runs-on: ubuntu-latest # upload to Test PyPI for every commit on main branch - if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' + # and check for the SciTools repo + if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository-owner == 'SciTools' steps: - uses: actions/download-artifact@v3 with: