Skip to content

Commit cbbb98c

Browse files
authored
build: wheel upload_pypi step should only run from main repo (#4820)
The upload_pypi step only happened for tags, not for other events like PRs. But it would TRY (and fail) if you pushed a v3.0.* tag to your own fork. This patch makes it not even attempt it, except when the tag is pushed to the official repo. Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent db878e0 commit cbbb98c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ jobs:
414414
runs-on: ubuntu-latest
415415
permissions:
416416
id-token: write
417-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v3.0.')
417+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v3.0.') && github.repository == 'AcademySoftwareFoundation/OpenImageIO'
418418
steps:
419419
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
420420

0 commit comments

Comments
 (0)