Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed Feb 2, 2024
1 parent 33ffcfd commit 7fce821
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 'your-directory/'
run: |
# Change to the directory where you want to check filenames
cd your-directory
# 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

0 comments on commit 7fce821

Please sign in to comment.