Skip to content

Commit 5ada8c8

Browse files
authored
Use github.event.repository.fork (#9551)
2 parents 6ede628 + ed89b93 commit 5ada8c8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717

1818
jobs:
1919
stale:
20-
if: github.repository_owner == 'python-pillow'
20+
if: github.event.repository.fork == false
2121
permissions:
2222
issues: write
2323

.github/workflows/wheels.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ env:
4444

4545
jobs:
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

Comments
 (0)