From 1034630dcda391e83dfe975f1d7a64f4d09d6f53 Mon Sep 17 00:00:00 2001 From: Soren Ptak Date: Tue, 28 Nov 2023 16:30:43 -0500 Subject: [PATCH] Revert back to upstream workflow file --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52ce045..ea56938 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,18 +21,15 @@ jobs: - name: Run Uncrustify run: | uncrustify --version - find . -iname "*.[hc]" -exec uncrustify --no-backup --replace --if-changed -c tools/uncrustify.cfg {} + + find . -iname "*.[hc]" -exec uncrustify --check -c tools/uncrustify.cfg {} + if [ "$?" = "0" ]; then exit 0 else echo -e "\033[31;1;43mFormatting check (using Uncrustify) failed...\033[0m" echo -e "\033[32;3mTo have the code uncrustified for you, please comment '/bot run uncrustify' (without the quotes) on the Pull Request.\033[0m" - git diff --color=always exit 1 fi - name: Check For Trailing Whitespace - shell: bash - if: success() || failure() run: | set +e grep --exclude="README.md" -rnI -e "[[:blank:]]$" .