mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Enhance lint-and-build workflow to display uncommitted changes and diffs before exiting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user