mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
ci: check tidiness of "task generate-schemadoc" (#7007)
This commit is contained in:
parent
4455cc1244
commit
64e09476c7
3
.github/workflows/go.yml
vendored
3
.github/workflows/go.yml
vendored
@ -43,11 +43,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
task generate
|
task generate
|
||||||
|
task generate-schemadoc
|
||||||
STATUS=$(git status --porcelain)
|
STATUS=$(git status --porcelain)
|
||||||
if [ ! -z "$STATUS" ]; then
|
if [ ! -z "$STATUS" ]; then
|
||||||
echo "Unstaged files:"
|
echo "Unstaged files:"
|
||||||
echo $STATUS
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user