ci: use xargs instead of find -exec

This allows us to see failure when yamllint return non-zero.

Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18595>
This commit is contained in:
David Heidelberg
2022-09-14 13:03:44 +02:00
committed by Marge Bot
parent 0ca7f923c5
commit cbaedd3e50

View File

@@ -2,4 +2,4 @@
set -e
# Run yamllint against all traces files.
find . -name '*traces*yml' -exec yamllint -d "{rules: {line-length: {max: 150}}}" {} \;
find . -name '*traces*yml' -print0 | xargs -0 yamllint -d "{rules: {line-length: {max: 150}}}"