ci(uncrustify): show diff on failure #18780

This will make it possible to see what needs to be fixed without having
uncrustify installed locally.
This commit is contained in:
dundargoc 2022-05-29 02:00:25 +02:00 committed by GitHub
parent 772ae3e656
commit f31a10204c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,8 @@ jobs:
- if: "!cancelled()"
name: uncrustify
run: |
${{ env.CACHE_UNCRUSTIFY }} -c ./src/uncrustify.cfg -q --check $(find ./src/nvim -name "*.[ch]") >/dev/null
${{ env.CACHE_UNCRUSTIFY }} -c ./src/uncrustify.cfg -q --replace --no-backup $(find ./src/nvim -name "*.[ch]")
git diff --color --exit-code
- if: "!cancelled()"
name: lualint