mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Enhance lint-and-build workflow to display uncommitted changes and diffs before exiting
This commit is contained in:
parent
b15331581c
commit
6684db64f3
16
.github/workflows/lint-and-build.yaml
vendored
16
.github/workflows/lint-and-build.yaml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user