From 845911725dadec7dda191dcae9147c8406023ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 31 Aug 2023 08:54:13 -0300 Subject: [PATCH] ci: check-trailing-spaces: Does nothing if trailing spaces are not found MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- .github/workflows/check-trailing-spaces.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-trailing-spaces.yml b/.github/workflows/check-trailing-spaces.yml index f3c3a26..36cfd38 100644 --- a/.github/workflows/check-trailing-spaces.yml +++ b/.github/workflows/check-trailing-spaces.yml @@ -26,6 +26,6 @@ jobs: if [[ $FILE == *.md ]]; then echo "Checking file $FILE" git diff FETCH_HEAD..HEAD -- $FILE | grep -P '^\+' | grep -P '\s+$' && \ - echo "Trailing spaces found in $FILE" && exit 1 + echo "Trailing spaces found in $FILE" && exit 1 || :; fi done