Ignore branch check for gitlab release
@@ -153,12 +153,11 @@ parse_args_and_release() {
exit 1
fi
+ if [[ "${CI:-}" != "true" ]]; then
if [[ "$stage" != "test" ]] && [[ $(git symbolic-ref HEAD) != "refs/heads/main" ]] && [[ "$force" != "yes" ]]; then
echo "You are releasing a beta/final release from a branch other than main, which is not allowed." >&2
exit 1
fi
-
- if [[ "${CI:-}" != "true" ]]; then
read -p "This is a $stage release of version $new_version, please confirm: [y/N] "
[[ ! "$REPLY" =~ ^[Yy]$ ]] && echo "Cancelling release" && exit 1
fi
