diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 009623f75..e4da8ba34 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -30,11 +30,11 @@ jobs: - name: Check code formatting run: | go install mvdan.cc/gofumpt@latest - unformatted_files=$(gofumpt -l ./backend/ | grep ".go$") + unformatted_files=$(gofumpt -l ./backend/ 2>/dev/null | grep ".go$") if [ -n "$unformatted_files" ]; then echo "Files not formatted:" echo "$unformatted_files" - exit 1 # Exit with a non-zero status code to indicate failure + exit 1 fi lint: