Account for current release channel in bump-app-version script

This commit is contained in:
Max Brunsfeld
2022-10-26 16:19:19 -07:00
parent 0f1b0a4a78
commit 6a010f58be
3 changed files with 23 additions and 7 deletions
+16 -1
View File
@@ -1,3 +1,18 @@
#!/bin/bash
exec script/lib/bump-version.sh zed v $@
channel=$(cat crates/zed/RELEASE_CHANNEL)
tag_suffix=""
case $channel; in
stable)
;;
preview)
tag_suffix="-pre"
;;
*)
echo "do this on a release branch where RELEASE_CHANNEL is either 'preview' or 'stable'" >&2
exit 1
;;
esac
exec script/lib/bump-version.sh zed v $tag_suffix $@