add better error message when 'make fmtcheck generate' fails
This commit is contained in:
parent
21b78a15be
commit
2d2369e3b1
|
@ -25,9 +25,9 @@ jobs:
|
||||||
name: verify no code was generated
|
name: verify no code was generated
|
||||||
command: |
|
command: |
|
||||||
if [[ -z $(git status --porcelain) ]]; then
|
if [[ -z $(git status --porcelain) ]]; then
|
||||||
echo "clean"
|
echo "Git directory is clean."
|
||||||
else
|
else
|
||||||
echo "dirty"
|
echo "Git is dirty. Run `make fmtcheck` and `make generate` locally and commit any formatting fixes or generated code."
|
||||||
git status --porcelain
|
git status --porcelain
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue