Skip to content
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 'your-directory/'
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:]]*")
if [ -n "$files" ]; then
echo "The following files are not lowercase:"
echo "$files"
exit 1
else
echo "All filenames are lowercase."
fi