Skip to content

Commit bb4716f

Browse files
fix(lint): do not check-eol on binary files
1 parent 42414ae commit bb4716f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/__call-common-lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ jobs:
156156
continue
157157
fi
158158
159+
# Skip binary files using git's binary detection
160+
# Git will output "Binary files differ" for binary files
161+
if git diff --no-index /dev/null "$file" 2>/dev/null | grep -q "Binary files"; then
162+
continue
163+
fi
164+
159165
# Check if file ends with newline using tail -c 1
160166
if [[ -n "$(tail -c 1 "$file")" ]]; then
161167
error=1

0 commit comments

Comments
 (0)