Skip to content

Commit 6684db6

Browse files
committed
Enhance lint-and-build workflow to display uncommitted changes and diffs before exiting
1 parent b153315 commit 6684db6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/lint-and-build.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,15 @@ jobs:
8888
if [[ -n $(git status --porcelain) ]]; then
8989
echo "Error: There are uncommitted changes after build/lint/typecheck."
9090
echo "Please commit all changes before pushing."
91+
echo ""
92+
echo "Files with uncommitted changes:"
93+
git status --porcelain
94+
echo ""
95+
echo "Full git status:"
9196
git status
97+
echo ""
98+
echo "Diff of changes:"
99+
git diff
92100
exit 1
93101
fi
94102
@@ -97,6 +105,14 @@ jobs:
97105
if [[ -n $(git status --porcelain) ]]; then
98106
echo "Error: There are uncommitted changes after build/lint/typecheck."
99107
echo "Please commit all changes before pushing."
108+
echo ""
109+
echo "Files with uncommitted changes:"
110+
git status --porcelain
111+
echo ""
112+
echo "Full git status:"
100113
git status
114+
echo ""
115+
echo "Diff of changes:"
116+
git diff
101117
exit 1
102118
fi

0 commit comments

Comments
 (0)