fix(husky): avoid echo syntax error under sh
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 3s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m5s
Monorepo Pipeline / 🧹 Lint (push) Successful in 3m11s
Monorepo Pipeline / 🏗️ Build (push) Successful in 2m46s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Image Processor (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped

This commit is contained in:
2026-02-27 19:41:16 +01:00
parent 8b0e130b08
commit 1bd7c6aba5

View File

@@ -37,9 +37,11 @@ do
fi fi
git push origin "$TAG" --force --no-verify git push origin "$TAG" --force --no-verify
echo -e "\n\033[32m✨ VERSIONS SYNCED & PUSHED SUCCESSFULLY ✨\033[0m" echo ""
echo -e "\033[33mThe correct commit has been tagged on origin.\033[0m" echo "✨ VERSIONS SYNCED & PUSHED SUCCESSFULLY ✨"
echo -e "\033[90m(Info: You will see a 'pre-push hook failed' and 'failed to push' error below. Please completely ignore it. We MUST abort the native git push, otherwise Git would push the pre-sync commit to the tag and break the version history.)\033[0m\n" echo "The correct commit has been tagged on origin."
echo "(Info: You will see a 'pre-push hook failed' and 'failed to push' error below. Please completely ignore it. We MUST abort the native git push, otherwise Git would push the pre-sync commit to the tag and break the version history.)"
echo ""
# We MUST exit 1, otherwise native Git will push the wrong commit to the tag # We MUST exit 1, otherwise native Git will push the wrong commit to the tag
exit 1 exit 1