File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
- name : Check for 1. missing end line breaks and 2. control characters in filenames and 3. filename rules
24
24
run : |
25
25
# ํ์ํ ๊ฐ๋ค ๋ฏธ๋ฆฌ ์ค์
26
- pr_author="$GITHUB_ACTOR "
26
+ pr_author="${{ github.event.pull_request.user.login }} "
27
27
pr_labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels -q '.labels[].name' || echo "")
28
28
29
29
# ๋ฐ์ดํ๋ฅผ ์ ๊ฑฐํ๊ณ ํ์ผ ๋ชฉ๋ก ๊ฐ์ ธ์ค๊ธฐ
@@ -80,10 +80,10 @@ jobs:
80
80
for file in $files; do
81
81
if [ -f "$file" ]; then
82
82
# ํ์ผ๋ช
๋ง ์ถ์ถ (๊ฒฝ๋ก ์ ์ธ)
83
- filename=$(basename "$file" | tr -d '"' )
83
+ filename=$(basename "$file")
84
84
# ํ์ผ๋ช
์ด GitHub๊ณ์ ๋ช
์ธ์ง ํ์ธ
85
- if ! echo "$filename" | grep -q " ^${pr_author}" ; then
86
- echo "- $file (ํ์ผ๋ช
์ '${ pr_author} '๋ก ํด์ฃผ์
์ผ ํฉ๋๋ค)" >> $GITHUB_STEP_SUMMARY
85
+ if [[ ! "$filename" =~ ^${pr_author} ]] ; then
86
+ echo "- $file (ํ์ผ๋ช
์ '$pr_author'๋ก ํด์ฃผ์
์ผ ํฉ๋๋ค)" >> $GITHUB_STEP_SUMMARY
87
87
success=false
88
88
fi
89
89
fi
You canโt perform that action at this time.
0 commit comments