We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93fc8b3 commit e580ee8Copy full SHA for e580ee8
.github/workflows/release.yml
@@ -30,7 +30,8 @@ jobs:
30
- name: Check version format
31
run: |
32
VERSION="${{ github.event.inputs.version }}"
33
- if [[ ! "$VERSION" =~ ^\d+\.\d+\.\d+(\.\d+)?$ ]]; then
+ # Accept 1.2.3 or 1.2.3.4.
34
+ if [[ ! "$VERSION" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(\.[[:digit:]]+)?$ ]]; then
35
echo "Invalid version format: $VERSION"
36
exit 1
37
fi
0 commit comments