From 8d08977477737ec9a42050670d77392ec0e24a26 Mon Sep 17 00:00:00 2001 From: ozline Date: Sun, 20 Oct 2024 00:22:26 +0800 Subject: [PATCH] fix: format and license ci --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 044231d..6d6eeba 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,7 +31,7 @@ jobs: run: | echo "refer to https://github.com/mvdan/gofumpt for detailed info" && GO111MODULE=on go install mvdan.cc/gofumpt@v0.4.0 && - make fmt && git add pkg cmd && + make fmt && git add . && git diff --cached --exit-code || (echo 'Please run "make fmt" to verify fmt' && exit 1); vet: @@ -70,5 +70,5 @@ jobs: - uses: actions/checkout@v3 - name: Check license header run: | - make license && git add pkg cmd && + make license && git add . && git diff --cached --exit-code || (echo 'Please run "make license" to add license headers' && exit 1); \ No newline at end of file