mirror of
https://github.com/github/awesome-copilot.git
synced 2026-07-14 01:51:02 +00:00
045273cfec
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
29 lines
729 B
YAML
29 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@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
|