From 0c160d2b94faa24126b4fa2ed5dc676229c882fe Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 25 May 2021 11:07:26 +0200 Subject: [PATCH] GitHub actions: show what exactly is not well formatted --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6bfe5dc3..e738550e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -58,8 +58,8 @@ jobs: with: go-version: 1.16.x - - name: Run gofmt -s -l . + - name: Run gofmt -s -d . run: | - fmtvar="$(gofmt -s -l .)" + fmtvar="$(gofmt -s -d .)" echo "$fmtvar" test -z "$fmtvar"