File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -65,21 +65,24 @@ jobs:
6565
6666 # Week μ€μ μ΄ μμΌλ©΄ λκΈ μμ±
6767 if [ "$week" = "null" ] || [ -z "$week" ]; then
68- echo " β οΈ Week μ€μ λλ½ - λκΈ μμ±"
68+ echo " β οΈ Week μ€μ λλ½ - λκΈ μμ± μλ "
6969
70- # μ΄λ―Έ λ΄μ΄ λκΈμ λ¬μλμ§ νμΈ
70+ # μ΄λ―Έ λ΄μ΄ λκΈμ λ¬μλμ§ νμΈ (μλ¬ λ°μ μ 무μ)
7171 existing_comment=$(gh pr view $pr_number \
7272 --repo ${{ github.repository }} \
7373 --json comments \
7474 --jq '.comments[] | select(.author.login == "github-actions[bot]") | select(.body | contains("Week μ€μ μ΄ λλ½")) | .id' \
75- | head -n 1)
75+ 2>/dev/null | head -n 1) || true
7676
7777 if [ -z "$existing_comment" ]; then
7878 # μ λκΈ μμ±
79- gh pr comment $pr_number \
79+ if gh pr comment $pr_number \
8080 --repo ${{ github.repository }} \
81- --body $'## β οΈ Week μ€μ μ΄ λλ½λμμ΅λλ€\n\nνλ‘μ νΈμμ Weekλ₯Ό μ€μ ν΄μ£ΌμΈμ!\n\n### μ€μ λ°©λ²\n1. PR μ°μΈ‘μ `Projects` μΉμ
μμ `리νΈμ½λ μ€ν°λ` μ λλ‘λ€μ΄(βΌ) ν΄λ¦\n2. νμ¬ μ£Όμ°¨λ₯Ό μ νν΄μ£ΌμΈμ (μ: `Week 14(current)` λλ `Week 14`)\n\nπ [μμΈν κ°μ΄λ 보기](https://github.com/DaleStudy/leetcode-study/wiki/%EB%8B%B5%EC%95%88-%EC%A0%9C%EC%B6%9C-%EA%B0%80%EC%9D%B4%EB%93%9C#pr-%EC%9E%91%EC%84%B1%EB%B2%95)\n\n---\nπ€ μ΄ λκΈμ GitHub Appμ ν΅ν΄ μλμΌλ‘ μμ±λμμ΅λλ€.'
82- echo " β
λκΈ μμ± μλ£"
81+ --body $'## β οΈ Week μ€μ μ΄ λλ½λμμ΅λλ€\n\nνλ‘μ νΈμμ Weekλ₯Ό μ€μ ν΄μ£ΌμΈμ!\n\n### μ€μ λ°©λ²\n1. PR μ°μΈ‘μ `Projects` μΉμ
μμ `리νΈμ½λ μ€ν°λ` μ λλ‘λ€μ΄(βΌ) ν΄λ¦\n2. νμ¬ μ£Όμ°¨λ₯Ό μ νν΄μ£ΌμΈμ (μ: `Week 14(current)` λλ `Week 14`)\n\nπ [μμΈν κ°μ΄λ 보기](https://github.com/DaleStudy/leetcode-study/wiki/%EB%8B%B5%EC%95%88-%EC%A0%9C%EC%B6%9C-%EA%B0%80%EC%9D%B4%EB%93%9C#pr-%EC%9E%91%EC%84%B1%EB%B2%95)\n\n---\nπ€ μ΄ λκΈμ GitHub Appμ ν΅ν΄ μλμΌλ‘ μμ±λμμ΅λλ€.' 2>/dev/null; then
82+ echo " β
λκΈ μμ± μλ£"
83+ else
84+ echo " β λκΈ μμ± μ€ν¨ (κΆν λ¬Έμ κ°λ₯μ±)"
85+ fi
8386 else
8487 echo " βΉοΈ μ΄λ―Έ μλ¦Ό λκΈμ΄ μμ - μ€ν΅"
8588 fi
You canβt perform that action at this time.
0 commit comments