mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 19:27:46 +08:00
fix gofmt check cmd
This commit is contained in:
parent
02849956e8
commit
9547277931
3
.github/workflows/go.yml
vendored
3
.github/workflows/go.yml
vendored
@ -57,8 +57,7 @@ jobs:
|
||||
run: |
|
||||
date
|
||||
find . -name "*.go" | xargs gofmt -w
|
||||
git diff --name-only --exit-code
|
||||
if [ $? != 0 ];then echo "Notice: gofmt check failed,please gofmt before pr." && exit 1; else echo "gofmt check pass."; fi
|
||||
git diff --name-only --exit-code || if [ $? != 0 ];then echo "Notice: gofmt check failed,please gofmt before pr." && exit 1; else echo "gofmt check pass."; fi
|
||||
sudo echo "127.0.0.1 local" | sudo tee -a /etc/hosts
|
||||
|
||||
- name: Run i386 Arch Test
|
||||
|
Loading…
Reference in New Issue
Block a user