Skip to content

Commit

Permalink
fix: 슬랙 알림 워크플로우 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jsk3342 committed Nov 13, 2024
1 parent 4d95e91 commit 2c2f488
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/pr-slack-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ jobs:
id: set-reviewers
run: |
REPO_NAME="${{ github.repository }}"
if [[ $REPO_NAME == */dev-fe ]]; then
if [[ $REPO_NAME == *"dev-fe"* ]]; then
echo "team=FE" >> $GITHUB_OUTPUT
echo "reviewers=<@U07GSBHPCPR> <@U07H6QLFPBM> <@U07H9CTPC9J>" >> $GITHUB_OUTPUT
elif [[ $REPO_NAME == */dev-be ]]; then
echo "reviewer_names=김지수, 고민지, 홍창현" >> $GITHUB_OUTPUT
elif [[ $REPO_NAME == *"dev-be"* ]]; then
echo "team=BE" >> $GITHUB_OUTPUT
echo "reviewers=<@U07GSBPT9ST> <@U07H0978N14>" >> $GITHUB_OUTPUT
echo "reviewer_names=김영길, 김준서" >> $GITHUB_OUTPUT
else
echo "team=Team" >> $GITHUB_OUTPUT
echo "reviewers=@here" >> $GITHUB_OUTPUT
echo "reviewer_names=전체" >> $GITHUB_OUTPUT
fi
- name: Send Slack notification
Expand Down Expand Up @@ -67,6 +73,15 @@ jobs:
"type": "mrkdwn",
"text": "👉 ${{ steps.set-reviewers.outputs.reviewers }} 리뷰 부탁드립니다!"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "✨ 리뷰어: ${{ steps.set-reviewers.outputs.reviewer_names }}"
}
]
}
]
}
Expand Down

0 comments on commit 2c2f488

Please sign in to comment.