Skip to content

Commit eefd0a9

Browse files
committed
test update
1 parent 852e55d commit eefd0a9

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

โ€Ž.github/workflows/integration.yamlโ€Ž

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222

2323
- name: Check for 1. missing end line breaks and 2. control characters in filenames and 3. filename rules
2424
run: |
25+
# ํ•„์š”ํ•œ ๊ฐ’๋“ค ๋ฏธ๋ฆฌ ์„ค์ •
26+
pr_author="$GITHUB_ACTOR"
27+
pr_labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels -q '.labels[].name' || echo "")
28+
2529
# ๋”ฐ์˜ดํ‘œ๋ฅผ ์ œ๊ฑฐํ•˜๊ณ  ํŒŒ์ผ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ
2630
files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | tr -d '"')
2731
echo "๋ณ€๊ฒฝ๋œ ํŒŒ์ผ ๋ชฉ๋ก:"
@@ -71,17 +75,15 @@ jobs:
7175
done
7276
7377
# maintenance ๋ผ๋ฒจ์ด ์—†๋Š” ๊ฒฝ์šฐ์—๋งŒ ํŒŒ์ผ๋ช… ๊ทœ์น™ ์ฒดํฌ
74-
if [[ ! "${{ steps.pr-labels.outputs.labels }}" =~ "maintenance" ]]; then
78+
if [[ ! "$pr_labels" =~ "maintenance" ]]; then
7579
echo -e "\n## ํŒŒ์ผ๋ช… ๊ทœ์น™ ์œ„๋ฐ˜" >> $GITHUB_STEP_SUMMARY
7680
for file in $files; do
7781
if [ -f "$file" ]; then
7882
# ํŒŒ์ผ๋ช…๋งŒ ์ถ”์ถœ (๊ฒฝ๋กœ ์ œ์™ธ)
7983
filename=$(basename "$file" | tr -d '"')
80-
github_username="${{ github.event.pull_request.user.login }}"
81-
8284
# ํŒŒ์ผ๋ช…์ด GitHub๊ณ„์ •๋ช…์ธ์ง€ ํ™•์ธ
83-
if ! echo "$filename" | grep -q "^${github_username}"; then
84-
echo "- $file (ํŒŒ์ผ๋ช…์€ '$github_username'๋กœ ํ•ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค)" >> $GITHUB_STEP_SUMMARY
85+
if ! echo "$filename" | grep -q "^${pr_author}"; then
86+
echo "- $file (ํŒŒ์ผ๋ช…์€ '${pr_author}'๋กœ ํ•ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค)" >> $GITHUB_STEP_SUMMARY
8587
success=false
8688
fi
8789
fi
@@ -92,8 +94,10 @@ jobs:
9294
echo -e "\n:warning: ์œ„ ๋ฌธ์ œ๋“ค์„ ํ•ด๊ฒฐํ•ด ์ฃผ์„ธ์š”:" >> $GITHUB_STEP_SUMMARY
9395
echo "1. ํŒŒ์ผ ๋์˜ ๋ˆ„๋ฝ๋œ ์ค„๋ฐ”๊ฟˆ์„ ์ถ”๊ฐ€ํ•ด ์ฃผ์„ธ์š”." >> $GITHUB_STEP_SUMMARY
9496
echo "2. ํŒŒ์ผ๋ช…์—์„œ ์ œ์–ด๋ฌธ์ž๋ฅผ ์ œ๊ฑฐํ•ด ์ฃผ์„ธ์š”." >> $GITHUB_STEP_SUMMARY
95-
if [[ ! "${{ steps.pr-labels.outputs.labels }}" =~ "maintenance" ]]; then
96-
echo "3. ํŒŒ์ผ๋ช…์€ ๋ฐ˜๋“œ์‹œ 'GitHub๊ณ„์ •๋ช…'์œผ๋กœ ํ•ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค. (์˜ˆ: ${{ github.event.pull_request.user.login }}.ts)" >> $GITHUB_STEP_SUMMARY
97+
if [[ ! "$pr_labels" =~ "maintenance" ]]; then
98+
echo "3. ํŒŒ์ผ๋ช…์€ ๋ฐ˜๋“œ์‹œ 'GitHub๊ณ„์ •๋ช…'์œผ๋กœ ํ•ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค. (์˜ˆ: ${pr_author}.ts)" >> $GITHUB_STEP_SUMMARY
9799
fi
98100
exit 1
99101
fi
102+
env:
103+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
ย (0)