Skip to content

Commit 62f7ee6

Browse files
authored
fix: output for gofmt
This was outputting a single error line even when multiple files needed formatting.
1 parent cf95652 commit 62f7ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/go-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
run: |
142142
out=$(gofmt -s -l .)
143143
if [[ -n "$out" ]]; then
144-
echo $out | awk '{print "::error file=" $0 ",line=0,col=0::File is not gofmt-ed."}'
144+
echo $out | tr " " "\n" | awk '{print "::error file=" $0 ",line=0,col=0::File " $0 " is not gofmt-ed."}'
145145
exit 1
146146
fi
147147
- name: go vet

0 commit comments

Comments
 (0)