chore: trigger a version check before pushing a tag

This commit is contained in:
Zaiming (Stone) Shi 2022-02-17 11:20:19 +01:00
parent a96c1284c6
commit cc1734490f
1 changed files with 4 additions and 0 deletions

View File

@ -4,9 +4,13 @@ set -euo pipefail
url="$2" url="$2"
## ensure enterprise code is not pushed to public repo
if [ -f 'EMQX_ENTERPRISE' ]; then if [ -f 'EMQX_ENTERPRISE' ]; then
if [[ "$url" != *emqx-enterprise* ]]; then if [[ "$url" != *emqx-enterprise* ]]; then
echo "$(tput setaf 1)error: enterprise_code_to_non_enterprise_repo" echo "$(tput setaf 1)error: enterprise_code_to_non_enterprise_repo"
exit 1 exit 1
fi fi
fi fi
## this triggers a tag vs release version check before pushing a tag
./pkg-vsn.sh