Skip to content

Commit 82f97d9

Browse files
committed
Refactor
1 parent 4ff4ada commit 82f97d9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
test-package:
3838
name: Test package
3939
if: |
40-
github.repository_owner == 'python'
40+
github.event.repository.fork == false
4141
&& (
4242
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
4343
|| github.event.action == 'published'
@@ -49,7 +49,7 @@ jobs:
4949
release-test-pypi:
5050
name: Publish in-dev package to test.pypi.org
5151
if: |
52-
github.repository_owner == 'python'
52+
github.event.repository.fork == false
5353
&& github.event_name == 'push'
5454
&& startsWith(github.ref, 'refs/tags/')
5555
runs-on: ubuntu-latest
@@ -74,7 +74,7 @@ jobs:
7474
name: Publish to PyPI
7575
# Only run for published releases.
7676
if: |
77-
github.repository_owner == 'python'
77+
github.event.repository.fork == false
7878
&& github.event.action == 'published'
7979
runs-on: ubuntu-latest
8080
needs: test-package

0 commit comments

Comments
 (0)