Skip to content

Commit 84209a8

Browse files
committed
[CI] support any release/test* branch name
1 parent babac16 commit 84209a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- run: python -m pip install build
3131
- run: python -m build
3232
- name: Publish to TestPyPI
33-
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish_to == 'testpypi' && github.ref == 'refs/heads/release/test' }}
33+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish_to == 'testpypi' && startsWith(github.ref, 'refs/heads/release/test') }}
3434
uses: pypa/gh-action-pypi-publish@release/v1
3535
with:
3636
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)