We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6414e6f commit 9928a56Copy full SHA for 9928a56
.github/workflows/integration.yaml
@@ -75,11 +75,16 @@ jobs:
75
echo -e "\n## 파일명 규칙 위반" >> $GITHUB_STEP_SUMMARY
76
for file in $files; do
77
if [ -f "$file" ]; then
78
+ # 파일명만 추출 (경로 제외)
79
filename=$(basename "$file" | tr -d '"')
80
github_username="${{ github.event.pull_request.user.login }}"
81
82
+ # 문자열 비교를 위해 따옴표로 감싸기
83
+ filename_quoted="$filename"
84
+ username_quoted="$github_username"
85
+
86
# 파일명이 GitHub계정명인지 확인
- if [[ ! "$filename" =~ ^"$github_username" ]]; then
87
+ if [[ ! "$filename_quoted" =~ ^$username_quoted ]]; then
88
echo "- $file (파일명은 '$github_username'로 해주셔야 합니다)" >> $GITHUB_STEP_SUMMARY
89
success=false
90
fi
0 commit comments