Skip to content

Commit

Permalink
Test only with capitals
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskern74 committed Feb 27, 2024
1 parent 0e18e16 commit 63be117
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/filename-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
- name: Check filenames for Windows compatibility # currently restricted to doc folder
run: |
with_capitals=$(find doc -type f \( -iname "*.md" -o -iname "*.png" \) | grep -E '/[A-Z]')
with_invalid_chars=$(find . -type f | grep -E '[<>:"/\\|?*]|[[:cntrl:]]')
if [ ! -z "$with_capitals" ] || [ ! -z "$with_invalid_chars" ]; then
# with_invalid_chars=$(find . -type f | grep -E '[<>:"/\\|?*]|[[:cntrl:]]')
# if [ ! -z "$with_capitals" ] || [ ! -z "$with_invalid_chars" ]; then
if [ ! -z "$with_capitals" ]; then
echo "The following files do not follow the naming convention:"
[ ! -z "$with_capitals" ] && echo "Files with capitals:" && echo "$with_capitals"
[ ! -z "$with_invalid_chars" ] && echo "Files with Windows-restricted characters:" && echo "$with_invalid_chars"
# [ ! -z "$with_invalid_chars" ] && echo "Files with Windows-restricted characters:" && echo "$with_invalid_chars"
exit 1
fi

0 comments on commit 63be117

Please sign in to comment.