Skip to content

Commit 56a2f1e

Browse files
committed
build: update release version string acceptance test
The accepted release version strings are Official releases: major.minor[.patch] e.g. 3.0, 3.0.1 Release Candidates: major.minor[.patch]-rc.* e.g. 3.0-rc.1, 3.0.1-rc.1 Development versions: alpha: major.minor[.patch]-a.* e.g. 3.0-a.1, 3.0.1-a.1 beta: major.minor[.patch]-b.* e.g. 3.0-b.1, 3.0.1-b.1 Update the regex accordingly. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 3dbc82d commit 56a2f1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ trap cleanup EXIT
6767
register_cleanup
6868

6969
# expected version regex
70-
re='^v([0-9]+\.[0-9]+(\.[0-9]+)?)(-rc[0-9]+)?$'
70+
re='^v([0-9]+\.[0-9]+(\.[0-9]+)?)(-(rc|a|b)\.[0-9]+)?$'
7171

7272
# use the version string provided from the command line
7373
if [[ "$VERSION" =~ ${re} ]]; then

0 commit comments

Comments
 (0)