Skip to content

Commit 94b2db2

Browse files
committed
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 <[email protected]>
1 parent cc8ed46 commit 94b2db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.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)