Skip to content

Commit aaaf55b

Browse files
committed
Add hint when precommit fails
1 parent c933d45 commit aaaf55b

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/precommit.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Wait for precommit server
3434
run: |
3535
for i in {1..300}; do
36-
if curl -fsS http://127.0.0.1:8080/ >/dev/null; then
36+
if curl -fs -o /dev/null http://127.0.0.1:8080/ 2>/dev/null; then
3737
echo "precommit server is ready"
3838
exit 0
3939
fi
@@ -49,5 +49,14 @@ jobs:
4949
env:
5050
ABACUS_PRECOMMIT_SERVER: "http://127.0.0.1:8080"
5151
run: |
52-
./tools/precommit/precommit.py --no-cache
53-
52+
if ! ./tools/precommit/precommit.py --no-cache; then
53+
echo ""
54+
echo "********************************************"
55+
echo "* *"
56+
echo "* O/ Try running ./make_pretty.sh *"
57+
echo "* /| *"
58+
echo "* / \\ *"
59+
echo "********************************************"
60+
echo ""
61+
exit 1
62+
fi

0 commit comments

Comments
 (0)