mirror of
https://github.com/github/awesome-copilot.git
synced 2026-06-25 08:57:43 +00:00
30 lines
729 B
YAML
30 lines
729 B
YAML
name: Check Line Endings
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check-line-endings:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
|
|
|
- name: Check for CRLF line endings in markdown files
|
|
run: |
|
|
! grep -l $'\r' $(find . -name "*.md")
|
|
if [ $? -eq 0 ]; then
|
|
echo "✅ No CRLF line endings found in markdown files"
|
|
exit 0
|
|
else
|
|
echo "❌ CRLF line endings found in markdown files"
|
|
echo "Files with CRLF line endings:"
|
|
grep -l $'\r' $(find . -name "*.md")
|
|
exit 1
|
|
fi
|