From 63be117165ce8b3754751332c0010dc8648fa8dd Mon Sep 17 00:00:00 2001 From: Andreas Kern Date: Tue, 27 Feb 2024 14:30:30 +0100 Subject: [PATCH] Test only with capitals --- .github/workflows/filename-check.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/filename-check.yml b/.github/workflows/filename-check.yml index 7f697933..0438b18f 100644 --- a/.github/workflows/filename-check.yml +++ b/.github/workflows/filename-check.yml @@ -12,10 +12,11 @@ jobs: - name: Check filenames for Windows compatibility # currently restricted to doc folder run: | with_capitals=$(find doc -type f \( -iname "*.md" -o -iname "*.png" \) | grep -E '/[A-Z]') - with_invalid_chars=$(find . -type f | grep -E '[<>:"/\\|?*]|[[:cntrl:]]') - if [ ! -z "$with_capitals" ] || [ ! -z "$with_invalid_chars" ]; then + # with_invalid_chars=$(find . -type f | grep -E '[<>:"/\\|?*]|[[:cntrl:]]') + # if [ ! -z "$with_capitals" ] || [ ! -z "$with_invalid_chars" ]; then + if [ ! -z "$with_capitals" ]; then echo "The following files do not follow the naming convention:" [ ! -z "$with_capitals" ] && echo "Files with capitals:" && echo "$with_capitals" - [ ! -z "$with_invalid_chars" ] && echo "Files with Windows-restricted characters:" && echo "$with_invalid_chars" + # [ ! -z "$with_invalid_chars" ] && echo "Files with Windows-restricted characters:" && echo "$with_invalid_chars" exit 1 fi