We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6d0c52 commit f299445Copy full SHA for f299445
1 file changed
.github/workflows/release-python.yaml
@@ -51,7 +51,7 @@ jobs:
51
52
- name: Publish to TestPyPI
53
uses: pypa/gh-action-pypi-publish@release/v1
54
- if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-')
+ if: startsWith(github.event.workflow_run.head_branch, 'refs/tags/') && contains(github.event.workflow_run.head_branch, '-')
55
with:
56
repository-url: https://test.pypi.org/legacy/
57
skip-existing: true
@@ -61,7 +61,7 @@ jobs:
61
62
- name: Publish to PyPI
63
64
- if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-')
+ if: startsWith(github.event.workflow_run.head_branch, 'refs/tags/') && !contains(github.event.workflow_run.head_branch, '-')
65
66
67
verify-metadata: false
0 commit comments