4444
4545jobs :
4646 build-native-wheels :
47- if : github.event_name != 'schedule' || github.repository_owner == 'python-pillow'
47+ if : github.event_name != 'schedule' || github.event.repository.fork == false
4848 name : ${{ matrix.name }}
4949 runs-on : ${{ matrix.os }}
5050 strategy :
@@ -136,7 +136,7 @@ jobs:
136136 path : ./wheelhouse/*.whl
137137
138138 windows :
139- if : github.event_name != 'schedule' || github.repository_owner == 'python-pillow'
139+ if : github.event_name != 'schedule' || github.event.repository.fork == false
140140 name : Windows ${{ matrix.cibw_arch }}
141141 runs-on : ${{ matrix.os }}
142142 strategy :
@@ -222,7 +222,7 @@ jobs:
222222 path : winbuild\build\bin\fribidi*
223223
224224 sdist :
225- if : github.event_name != 'schedule' || github.repository_owner == 'python-pillow'
225+ if : github.event_name != 'schedule' || github.event.repository.fork == false
226226 runs-on : ubuntu-latest
227227 steps :
228228 - uses : actions/checkout@v6
@@ -260,7 +260,7 @@ jobs:
260260 [ "$files" -eq $EXPECTED_DISTS ] || exit 1
261261
262262 scientific-python-nightly-wheels-publish :
263- if : github.repository_owner == 'python-pillow' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
263+ if : github.event.repository.fork == false && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
264264 needs : count-dists
265265 runs-on : ubuntu-latest
266266 name : Upload wheels to scientific-python-nightly-wheels
@@ -277,7 +277,7 @@ jobs:
277277 anaconda_nightly_upload_token : ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
278278
279279 pypi-publish :
280- if : github.repository_owner == 'python-pillow' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
280+ if : github.event.repository.fork == false && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
281281 needs : count-dists
282282 runs-on : ubuntu-latest
283283 name : Upload release to PyPI
0 commit comments