ci: check tidiness of "task generate-schemadoc" (#7007)

pull/7010/head
Joe Chen 2022-06-04 14:40:21 +08:00 committed by GitHub
parent 4455cc1244
commit 64e09476c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -43,11 +43,12 @@ jobs:
run: |
go mod tidy
task generate
task generate-schemadoc
STATUS=$(git status --porcelain)
if [ ! -z "$STATUS" ]; then
echo "Unstaged files:"
echo $STATUS
echo "Run 'go mod tidy' or 'task generate' and commit them"
echo "Run 'go mod tidy', 'task generate' or 'task generate-schemadoc' and commit them"
exit 1
fi