From 045273cfec5e719d6871600cd53022ef07895ce5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 01:09:53 +0000 Subject: [PATCH] Fix check-line-endings: upgrade actions/checkout v3 to v4.3.1, simplify script Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com> --- .github/workflows/check-line-endings.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-line-endings.yml b/.github/workflows/check-line-endings.yml index c4e03caa..1759828d 100644 --- a/.github/workflows/check-line-endings.yml +++ b/.github/workflows/check-line-endings.yml @@ -13,17 +13,16 @@ jobs: check-line-endings: runs-on: ubuntu-latest steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Check for CRLF line endings in markdown files run: | - ! grep -l $'\r' $(find . -name "*.md") - if [ $? -eq 0 ]; then + 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" - exit 0 else echo "❌ CRLF line endings found in markdown files" echo "Files with CRLF line endings:" - grep -l $'\r' $(find . -name "*.md") + echo "$CRLF_FILES" exit 1 fi