mirror of https://github.com/zulip/zulip.git
release: Release 8.0-prereleases from `main`.
This commit is contained in:
parent
c1008b5b12
commit
23fd05494d
|
@ -30,16 +30,14 @@ if [[ "$version" =~ -[0-9a-z]+$ ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
is_major_release=
|
is_major_release=
|
||||||
if [[ "$version" =~ ^[0-9]+\.0$ ]]; then
|
if [[ "$version" =~ ^[0-9]+\.0(-[0-9a-z]+)?$ ]]; then
|
||||||
[ "$branch" == "main" ] \
|
[ "$branch" == "main" ] \
|
||||||
|| fail "Did not expect $version to be released from $branch, expected main"
|
|| fail "Did not expect $version to be released from $branch, expected main"
|
||||||
|
if [ -z "$is_prerelease" ]; then
|
||||||
is_major_release=1
|
is_major_release=1
|
||||||
else
|
fi
|
||||||
if [ -n "$is_prerelease" ]; then
|
|
||||||
expected_branch="${version}-branch"
|
|
||||||
else
|
else
|
||||||
expected_branch="$(echo "$version" | perl -ple 's/\..*/.x/')"
|
expected_branch="$(echo "$version" | perl -ple 's/\..*/.x/')"
|
||||||
fi
|
|
||||||
[ "$branch" == "$expected_branch" ] \
|
[ "$branch" == "$expected_branch" ] \
|
||||||
|| fail "Did not expect $version to be released from $branch, expected $expected_branch"
|
|| fail "Did not expect $version to be released from $branch, expected $expected_branch"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue