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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Check for CRLF line endings in markdown files run: | CRLF_FILES=$(grep -rl $'\r' --include="*.md" . 2>/dev/null || true) if [ -z "$CRLF_FILES" ]; then echo "✅ No CRLF line endings found in markdown files" else echo "❌ CRLF line endings found in markdown files" echo "Files with CRLF line endings:" echo "$CRLF_FILES" exit 1 fi