ci: add lint error header in log

Signed-off-by: Tanguy ⧓ Herrmann <tanguy@dagger.io>
This commit is contained in:
Tanguy ⧓ Herrmann 2022-04-19 19:00:55 +02:00
parent 18c19174a2
commit d95c76f87b
No known key found for this signature in database
GPG Key ID: 0FE2C1C97F50F73B

View File

@ -50,7 +50,8 @@ import (
git status
find . -name '*.cue' -not -path '*/cue.mod/*' -print | time xargs -t -n 1 -P 8 cue fmt -s
test -z "$(git status -s . | grep -e "^ M" | grep "\.cue" | cut -d ' ' -f3 | tee /dev/stderr)"
modified="$(git status -s . | grep -e "^ M" | grep "\.cue" | cut -d ' ' -f3 || true)"
test -z "$modified" || (echo -e "linting error in:\n${modified}" > /dev/stderr ; false)
"""#
},
]