Skip to content

Commit edd5b6a

Browse files
committed
Check notebooks are lowercase
1 parent 33ffcfd commit edd5b6a

File tree

6 files changed

+25
-0
lines changed

6 files changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check nteobook names are lowercase
2+
3+
on: [push]
4+
5+
jobs:
6+
check-lowercase:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
12+
- name: Check filenames in 'notebooks/'
13+
run: |
14+
# Change to the directory where you want to check filenames
15+
cd notebooks
16+
# Find files with uppercase characters in their names
17+
files=$(find . -type f | grep '[A-Z]' || true)
18+
if [ -n "$files" ]; then
19+
echo "The following files are not lowercase:"
20+
echo "$files"
21+
exit 1
22+
else
23+
echo "All filenames are lowercase."
24+
exit 0
25+
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)