-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from huggingface/check_filenames_lowercase
Check notebooks are lowercase
- Loading branch information
Showing
8 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Check notebook names are lowercase | ||
|
||
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]' || true) | ||
if [ -n "$files" ]; then | ||
echo "The following files are not lowercase:" | ||
echo "$files" | ||
exit 1 | ||
else | ||
echo "All filenames are lowercase." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.