chore(CI): disable apps version check in unstable tags

This commit is contained in:
zhanghongtong 2021-07-05 14:44:14 +08:00 committed by turtleDeng
parent ce1e6ce89d
commit e1a33c373c
1 changed files with 47 additions and 35 deletions

View File

@ -17,7 +17,8 @@ get_vsn() {
fi
}
while read -r app_path; do
check_apps() {
while read -r app_path; do
app=$(basename "$app_path")
src_file="$app_path/src/$app.app.src"
old_app_version="$(get_vsn "$latest_release" "$src_file")"
@ -47,10 +48,21 @@ while read -r app_path; do
bad_app_count=$(( bad_app_count + 1))
fi
fi
done < <(./scripts/find-apps.sh)
done < <(./scripts/find-apps.sh)
if [ $bad_app_count -gt 0 ]; then
if [ $bad_app_count -gt 0 ]; then
exit 1
else
else
echo "apps version check successfully"
fi
fi
}
_main() {
if echo "${latest_release}" |grep -oE '[0-9]+.[0-9]+.[0-9]+' > /dev/null 2>&1; then
check_apps
else
echo "skiped unstable tag: ${latest_release}"
fi
}
_main