Skip to content

Commit 0a20da5

Browse files
committed
Fix github action
1 parent b0ea664 commit 0a20da5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/scripts/gofmt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ cleanup() {
99
trap cleanup EXIT
1010

1111

12-
gofmt -l -d . >${TMPDIR}/fmt.out
12+
find . -name \*.go -type f \! -name \*_gen.go \
13+
| xargs gofmt -l -d >${TMPDIR}/fmt.out
1314

1415
if [ -s ${TMPDIR}/fmt.out ];
1516
then

0 commit comments

Comments
 (0)