Skip to content

Commit 51f9f3a

Browse files
committed
ci: release workflow
1 parent bb514e6 commit 51f9f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
shell: bash
3131
run: |
3232
ver=${GITHUB_REF##*/}
33-
if [[ ! "$ver" =~ [0-9]+.[0-9]+.[0-9]+$ ]]; then
34-
echo "Error: Tag format is invalid. Expected format: vX.X.X"
33+
if [[ ! "$ver" =~ ^v[0-9]+(\.[0-9]+){2}(-rc[0-9]+)?$ ]]; then
34+
echo "Error: Tag format is invalid. Expected format: vX.X.X or vX.X.X-rcX"
3535
exit 1
3636
fi
3737

0 commit comments

Comments
 (0)