diff --git a/.github/workflows/check_filenames_lowercase.yml b/.github/workflows/check_filenames_lowercase.yml new file mode 100644 index 00000000..70bb13e5 --- /dev/null +++ b/.github/workflows/check_filenames_lowercase.yml @@ -0,0 +1,24 @@ +name: Lowercase Filename Check + +on: [push] + +jobs: + check-lowercase: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Check filenames in 'notebooks/' + run: | + # Change to the directory where you want to check filenames + cd notebooks + # 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 + else + echo "All filenames are lowercase." + fi \ No newline at end of file