Enhance lint-and-build workflow to display uncommitted changes and diffs before exiting

This commit is contained in:
Konstantin Wohlwend 2025-10-28 00:32:52 -07:00
parent b15331581c
commit 6684db64f3

View File

@ -88,7 +88,15 @@ jobs:
if [[ -n $(git status --porcelain) ]]; then
echo "Error: There are uncommitted changes after build/lint/typecheck."
echo "Please commit all changes before pushing."
echo ""
echo "Files with uncommitted changes:"
git status --porcelain
echo ""
echo "Full git status:"
git status
echo ""
echo "Diff of changes:"
git diff
exit 1
fi
@ -97,6 +105,14 @@ jobs:
if [[ -n $(git status --porcelain) ]]; then
echo "Error: There are uncommitted changes after build/lint/typecheck."
echo "Please commit all changes before pushing."
echo ""
echo "Files with uncommitted changes:"
git status --porcelain
echo ""
echo "Full git status:"
git status
echo ""
echo "Diff of changes:"
git diff
exit 1
fi