File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,35 @@ jobs:
1111 with :
1212 fetch-depth : 0
1313
14- - name : Find files missing end line break
14+ - name : Check for 1. missing end line breaks and 2. control characters in filenames
1515 run : |
1616 files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
1717 success=true
18+
19+ # ์ค๋ฐ๊ฟ ์ฒดํฌ
20+ echo "## ์ค๋ฐ๊ฟ ๋๋ฝ ํ์ผ" >> $GITHUB_STEP_SUMMARY
1821 for file in $files; do
1922 if [ -s "$file" ] && [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then
2023 echo "- $file" >> $GITHUB_STEP_SUMMARY
2124 success=false
2225 fi
2326 done
2427
28+ # ์ ์ด๋ฌธ์ ์ฒดํฌ
29+ echo -e "\n## ์ ์ด๋ฌธ์๊ฐ ํฌํจ๋ ํ์ผ๋ช
" >> $GITHUB_STEP_SUMMARY
30+ for file in $files; do
31+ # ls -b๋ฅผ ํตํด ์ ์ด๋ฌธ์๋ฅผ ๋ฐฑ์ฌ๋์ ์ด์ค์ผ์ดํ ํํ๋ก ํ์
32+ filename=$(ls -b "$file" 2>/dev/null)
33+ # ์๋ณธ ํ์ผ๋ช
๊ณผ ์ด์ค์ผ์ดํ๋ ํ์ผ๋ช
์ด ๋ค๋ฅด๋ค๋ฉด ์ ์ด๋ฌธ์๊ฐ ํฌํจ๋ ๊ฒ
34+ if [ "$file" != "$filename" ]; then
35+ echo "- $filename" >> $GITHUB_STEP_SUMMARY
36+ success=false
37+ fi
38+ done
39+
2540 if [ "$success" = false ]; then
26- echo -e "\n:warning: ์ ํ์ผ๋ค์ ๋์ ๋๋ฝ๋ ์ค ๋ฐ๊ฟ์ ์ถ๊ฐํด ์ฃผ์ธ์." >> $GITHUB_STEP_SUMMARY
41+ echo -e "\n:warning: ์ ๋ฌธ์ ๋ค์ ํด๊ฒฐํด์ฃผ์ธ์:" >> $GITHUB_STEP_SUMMARY
42+ echo "1. ํ์ผ ๋์ ๋๋ฝ๋ ์ค ๋ฐ๊ฟ์ ์ถ๊ฐํด ์ฃผ์ธ์." >> $GITHUB_STEP_SUMMARY
43+ echo "2. ํ์ผ๋ช
์์ ์ ์ด๋ฌธ์๋ฅผ ์ ๊ฑฐํด ์ฃผ์ธ์." >> $GITHUB_STEP_SUMMARY
2744 exit 1
2845 fi
You canโt perform that action at this time.
0 commit comments