Disable flaky generated files check

This commit is contained in:
Joe Chen
2022-03-19 14:28:24 +08:00
parent 1bf5d89386
commit 45fdfecf64

View File

@@ -37,16 +37,15 @@ jobs:
run: |
curl --silent --location --output /usr/local/bin/go-bindata https://github.com/kevinburke/go-bindata/releases/download/v3.23.0/go-bindata-linux-amd64
chmod +x /usr/local/bin/go-bindata
- name: Check Go module tidiness and generated files
- name: Check Go module tidiness
shell: bash
run: |
go mod tidy
task generate
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' and commit them"
exit 1
fi