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:
11
11
with :
12
12
fetch-depth : 0
13
13
14
- - name : Find files missing end line break
14
+ - name : Check for 1. missing end line breaks and 2. control characters in filenames
15
15
run : |
16
16
files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
17
17
success=true
18
+
19
+ # ์ค๋ฐ๊ฟ ์ฒดํฌ
20
+ echo "## ์ค๋ฐ๊ฟ ๋๋ฝ ํ์ผ" >> $GITHUB_STEP_SUMMARY
18
21
for file in $files; do
19
22
if [ -s "$file" ] && [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then
20
23
echo "- $file" >> $GITHUB_STEP_SUMMARY
21
24
success=false
22
25
fi
23
26
done
24
27
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
+
25
40
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
27
44
exit 1
28
45
fi
You canโt perform that action at this time.
0 commit comments