From cc1734490f9e90be4989eaed2340857c74134401 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 17 Feb 2022 11:20:19 +0100 Subject: [PATCH] chore: trigger a version check before pushing a tag --- scripts/git-hook-pre-push.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/git-hook-pre-push.sh b/scripts/git-hook-pre-push.sh index 5b3f2edf2..689604092 100755 --- a/scripts/git-hook-pre-push.sh +++ b/scripts/git-hook-pre-push.sh @@ -4,9 +4,13 @@ set -euo pipefail url="$2" +## ensure enterprise code is not pushed to public repo if [ -f 'EMQX_ENTERPRISE' ]; then if [[ "$url" != *emqx-enterprise* ]]; then echo "$(tput setaf 1)error: enterprise_code_to_non_enterprise_repo" exit 1 fi fi + +## this triggers a tag vs release version check before pushing a tag +./pkg-vsn.sh