Skip to content

Commit 55e609c

Browse files
committed
fix(ci): release tag semver check
1 parent f7319eb commit 55e609c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ jobs:
9797
- name: Check for semver tag
9898
id: semvercheck
9999
run: |
100-
if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
100+
if [[ ${{ github.ref }} =~ ^refs\/tags\/v0\.[0-9]+\.[0-9]+$ ]]; then
101101
MATCH=true
102102
else
103103
MATCH=false
104104
fi
105-
if [[ ! ${{ github.ref }} =~ ^refs/tags/v0\. ]]; then
105+
if [[ ${{ github.ref }} =~ ^refs\/tags\/v[1-9]+\.[0-9]+\.[0-9]+$ ]]; then
106106
MATCH=$MATCH_nonzero
107107
fi
108108
echo ::set-output name=match::$MATCH

0 commit comments

Comments
 (0)