File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments