Skip to content

Commit e580ee8

Browse files
committed
Fix version format check
1 parent 93fc8b3 commit e580ee8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
- name: Check version format
3131
run: |
3232
VERSION="${{ github.event.inputs.version }}"
33-
if [[ ! "$VERSION" =~ ^\d+\.\d+\.\d+(\.\d+)?$ ]]; then
33+
# Accept 1.2.3 or 1.2.3.4.
34+
if [[ ! "$VERSION" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(\.[[:digit:]]+)?$ ]]; then
3435
echo "Invalid version format: $VERSION"
3536
exit 1
3637
fi

0 commit comments

Comments
 (0)