Skip to content

Commit 788982b

Browse files
committed
remove compile changes
1 parent c90d382 commit 788982b

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,6 @@ jobs:
2727
node_modules/.astro/assets
2828
key: static
2929

30-
- name: Check for CRLF line endings
31-
run: |
32-
git fetch --depth=1 origin production
33-
CHANGED=$(git diff --name-only FETCH_HEAD...HEAD)
34-
if [ -z "$CHANGED" ]; then
35-
exit 0
36-
fi
37-
CRLF_FILES=$(echo "$CHANGED" | xargs -I{} sh -c '[ -f "{}" ] && git grep -Il $'"'"'\r'"'"' -- "{}" 2>/dev/null || true')
38-
if [ -n "$CRLF_FILES" ]; then
39-
echo "::error::CRLF line endings detected in the following files:"
40-
echo "$CRLF_FILES"
41-
echo ""
42-
echo "Fix with: git add --renormalize . && git commit -m 'chore: normalize line endings'"
43-
exit 1
44-
fi
45-
4630
- run: |
4731
FILES=$(
4832
find src/content \
@@ -125,8 +109,7 @@ jobs:
125109

126110
- name: Check for CRLF line endings
127111
run: |
128-
git fetch --depth=1 origin production
129-
CHANGED=$(git diff --name-only FETCH_HEAD...HEAD)
112+
CHANGED=$(git diff --name-only ${{ github.event.pull_request.base.sha }} HEAD)
130113
if [ -z "$CHANGED" ]; then
131114
exit 0
132115
fi

0 commit comments

Comments
 (0)