Skip to content

Commit 559e7f2

Browse files
committed
Skip TestPyPI publishing for fork PRs
1 parent a1ebe5d commit 559e7f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/dry-run-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ jobs:
114114
twine check wheelhouse/*
115115
116116
- name: Publish package to testpypi
117+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
117118
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
118119
with:
119120
repository-url: https://test.pypi.org/legacy/
120121
user: __token__
121122
password: ${{ secrets.TEST_PYPI_TOKEN }}
122123
packages-dir: wheelhouse/
123124
verbose: true
124-

0 commit comments

Comments
 (0)