Skip to content

Commit

Permalink
Check notebooks are lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed Feb 2, 2024
1 parent 33ffcfd commit fe21e3f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/check_filenames_lowercase.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fe21e3f

Please sign in to comment.