Skip to content

Commit 3e80877

Browse files
when the job runs
1 parent 95786ce commit 3e80877

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ jobs:
7676
name: Build a PyPI-compatible index
7777
runs-on: ubuntu-latest
7878
needs: [create_release_artifacts]
79-
if: ${{ always() && !failure() && !cancelled() }}
79+
if: ${{ always() && !failure() && !cancelled() &&
80+
(github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository))}}
8081
permissions:
8182
contents: write
8283
actions: read

0 commit comments

Comments
 (0)