Skip to content

Commit 8a58192

Browse files
committed
fix: validate release tag regex
1 parent bb3a307 commit 8a58192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/gh_validate_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Validate Release Tag
1212
shell: bash
1313
run: |
14-
if [[ ! ${{ github.event.release.tag_name }} =~ ^v(0|[1-9]*)\.(0|[1-9]*)\.(0|[1-9]*) ]]; then
14+
if [[ ! ${{ github.event.release.tag_name }} =~ ^v(0|[0-9]*)\.(0|[0-9]*)\.(0|[0-9]*) ]]; then
1515
echo 'Debug: https://regexr.com/?text=${{ github.event.release.tag_name }}&expression=^v(0|[1-9]*)\.(0|[1-9]*)\.(0|[1-9]*)'
1616
echo "More info: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string"
1717
echo "::error::Release Tag needs to match 'v[0-9]+.[0-9]+'"

0 commit comments

Comments
 (0)