mirror of
https://github.com/soypat/lneto.git
synced 2026-08-23 16:09:07 +00:00
@@ -20,9 +20,9 @@ jobs:
|
|||||||
|
|
||||||
- name: gofmt
|
- name: gofmt
|
||||||
run: |
|
run: |
|
||||||
unformatted=$(gofmt -l .)
|
unformatted=$(gofmt -l -d . 2>&1) || true
|
||||||
if [ -n "$unformatted" ]; then
|
if [ -n "$unformatted" ]; then
|
||||||
echo "::error::Files not formatted with gofmt:"
|
echo "::error::File(s) not formatted with gofmt:"
|
||||||
echo "$unformatted"
|
echo "$unformatted"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user