Merge pull request #9108 from zmstone/1006-support-additional-checks-before-release-tag

build: support additional checks before cutting a release tag
This commit is contained in:
Zaiming (Stone) Shi 2022-10-06 11:13:24 +02:00 committed by GitHub
commit fc291c8d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -230,6 +230,16 @@ if [ "$HAS_RELUP_DB" = 'yes' ]; then
./scripts/relup-base-vsns.escript check-vsn-db "$PKG_VSN" "$RELUP_PATHS"
fi
## Run some additional checks (e.g. some for enterprise edition only)
CHECKS_DIR="./scripts/rel/checks"
if [ -d "${CHECKS_DIR}" ]; then
CHECKS="$(find "${CHECKS_DIR}" -name "*.sh" -print0 2>/dev/null | xargs -0)"
for c in $CHECKS; do
logmsg "Executing $c"
$c
done
fi
if [ "$DRYRUN" = 'yes' ]; then
logmsg "Release tag is ready to be created with command: git tag $TAG"
else