Skip to content

Commit e0985d2

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

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ jobs:
156156
continue
157157
fi
158158
159+
# Skip binary files using file --mime-encoding
160+
if file --mime-encoding "$file" | grep -q ": binary$"; then
161+
continue
162+
fi
163+
159164
# Check if file ends with newline using tail -c 1
160165
if [[ -n "$(tail -c 1 "$file")" ]]; then
161166
error=1

0 commit comments

Comments
 (0)