From 66a562064013d8e6aafd5040fa2427818452dee9 Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Fri, 2 Feb 2024 12:30:47 +0100 Subject: [PATCH] fix --- .github/workflows/check_filenames_lowercase.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check_filenames_lowercase.yml b/.github/workflows/check_filenames_lowercase.yml index 20115ab8..70bb13e5 100644 --- a/.github/workflows/check_filenames_lowercase.yml +++ b/.github/workflows/check_filenames_lowercase.yml @@ -9,16 +9,16 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Check filenames in 'your-directory/' + - name: Check filenames in 'notebooks/' run: | # Change to the directory where you want to check filenames cd notebooks - # Find files that do not match the lowercase pattern - files=$(find . -type f ! -path "./.*" ! -name "*[[:upper:]]*") + # Find files with uppercase characters in their names + files=$(find . -type f | grep '[A-Z]') if [ -n "$files" ]; then - echo "The following files are not lowercase:" - echo "$files" - exit 1 + echo "The following files are not lowercase:" + echo "$files" + exit 1 else - echo "All filenames are lowercase." + echo "All filenames are lowercase." fi \ No newline at end of file