Skip to content

Commit f4e61e5

Browse files
committed
ci/fmt.sh: Error if changes on CI
1 parent 30447a3 commit f4e61e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/fmt.sh

+4
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ npx prettier@3.0.3 \
1818
$(git ls-files "*.yml" "*.md" "*.js" "*.css" "*.html")
1919

2020
go run golang.org/x/tools/cmd/stringer@latest -type=opcode,MessageType,StatusCode -output=stringer.go
21+
22+
if [ "${CI-}" ]; then
23+
git diff --exit-code
24+
fi

0 commit comments

Comments
 (0)