From 042215b8dd62621a084cc56784f1fb0e5bc0ef28 Mon Sep 17 00:00:00 2001 From: GnomeZworc Date: Thu, 21 Mar 2024 18:07:01 +0100 Subject: [PATCH] v1.2.0: ci: fix release Signed-off-by: GnomeZworc --- scripts/gitlab_release.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/gitlab_release.sh b/scripts/gitlab_release.sh index ecc5f88..6a85d01 100644 --- a/scripts/gitlab_release.sh +++ b/scripts/gitlab_release.sh @@ -51,11 +51,18 @@ main () { echo "# ${NAME} ${VERSION}" - exec_with_dry_run ${FLAGS_dryrun} "release-cli create --name '${NAME}' --description '${BODY}' \ + exec_with_dry_run ${FLAGS_dryrun} "/usr/local/bin/release-cli create --name '${NAME}' --description '${BODY}' \ --tag-name '${VERSION}' --ref '${VERSION}' \ --milestone '${VERSION}' \ ${ASSET}" + return 0 } -[[ "${BASH_SOURCE[0]}" == "${0}" ]] && (main "$@" || exit 1) -[[ "${BASH_SOURCE[0]}" == "" ]] && (main "$@" || exit 1) \ No newline at end of file +[[ "${BASH_SOURCE[0]}" == "${0}" ]] && \ + { + main "$@" && exit 0 || exit 1 + } +[[ "${BASH_SOURCE[0]}" == "" ]] && \ + { + main "$@" && exit 0 || exit 1 + } \ No newline at end of file