Skip to content

Commit 39a4e15

Browse files
committed
Annotate CRLF
1 parent 75218de commit 39a4e15

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/check_samples.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ jobs:
4040
CRLF_ENDINGS=$(find . -not -path '*/\.*' -type f -exec file "{}" ";" | grep CRLF || true)
4141
CRLF_ENDINGS_COUNT=$(echo "${CRLF_ENDINGS}" | wc -w)
4242
if (( CRLF_ENDINGS_COUNT > 0 )); then
43-
echo "The following files have CRLF line endings (not allowed):"
44-
echo "${CRLF_ENDINGS}"
43+
for i in ${CRLF_ENDINGS}; do
44+
echo "::error file=${i},line=1,title=Line Endings::This file has CRLF (Windows) line endings, which is not allowed"
45+
done
4546
exit 1
4647
fi
4748

0 commit comments

Comments
 (0)