From e05a5d0cb73e2e3780fb0fe7253fd510019da7ac Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Tue, 5 Oct 2021 14:15:41 -0500 Subject: [PATCH] Don't fail if no CRLF issues are found --- .github/workflows/check_samples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_samples.yml b/.github/workflows/check_samples.yml index ec50270..2077a56 100644 --- a/.github/workflows/check_samples.yml +++ b/.github/workflows/check_samples.yml @@ -25,7 +25,7 @@ jobs: - name: Check Line Endings run: | - CRLF_ENDINGS=$(find . -not -type d -exec file "{}" ";" | grep CRLF) + CRLF_ENDINGS=$(find . -not -type d -exec file "{}" ";" | grep CRLF || true) CRLF_ENDINGS_COUNT=$(echo "${CRLF_ENDINGS}" | wc -w) if (( CRLF_ENDINGS_COUNT > 0 )); then echo "The following files are not allowed:"