Skip to content

Commit 79a84fa

Browse files
committed
Don't attempt to publish from forks
1 parent c9b1424 commit 79a84fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pypi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ jobs:
162162
id-token: write
163163
needs: [check_dist]
164164
runs-on: ubuntu-latest
165-
if: github.event_name == 'release' && github.event.action == 'published'
165+
# Don't publish from forks
166+
if: github.repository_owner == 'pymc-devs' && github.event_name == 'release' && github.event.action == 'published'
166167
steps:
167168
- uses: actions/download-artifact@v4
168169
with:

0 commit comments

Comments
 (0)