diff --git a/.github/workflows/publish-commits-to-pypi-test.yaml b/.github/workflows/publish-commits-to-pypi-test.yaml index 70374fd..66bd97d 100644 --- a/.github/workflows/publish-commits-to-pypi-test.yaml +++ b/.github/workflows/publish-commits-to-pypi-test.yaml @@ -4,7 +4,7 @@ on: push jobs: build: - if: contains(github.ref, '/tags/') && contains(github.ref_name, 't') + if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test') environment: name: testpypi url: https://test.pypi.org/p/dcnodatg @@ -30,7 +30,7 @@ jobs: name: python-package-distributions path: dist/ publish-to-testpypi: - if: contains(github.ref, '/tags/') && contains(github.ref_name, 'tst') + if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test') environment: name: testpypi url: https://test.pypi.org/p/dcnodatg