Skip to content

Commit 3fe5cb4

Browse files
committed
ci: restrict version check to prod
1 parent fb1cf1f commit 3fe5cb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
if: startsWith(github.ref, 'refs/tags/')
3636
runs-on: ubuntu-latest
3737
steps:
38-
- name: Check tag conforms
38+
- name: "Check tag conforms ^[0-9]+\\.[0-9]+\\.[0-9]+$"
3939
run: |
4040
trimmed_tag=${GITHUB_REF#refs/tags/}
4141
echo trimmed_tag='"'$trimmed_tag'"'
42-
exit [[ "$trimmed_tag" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?$ ]]
42+
exit [[ "$trimmed_tag" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
4343
4444
publish-to-pypi:
4545
name: >-

0 commit comments

Comments
 (0)