fix [#201] 아티스트 검색 결과 예정된 공연 총 개수 조회하도록 로직 및 응답값 수정 #193
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'PR Discord Notification' | |
on: | |
pull_request: | |
branches: | |
- develop | |
- main | |
types: | |
- opened | |
- closed | |
jobs: | |
notification: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Discord Notification | |
env: | |
ACTION: ${{ github.event.action }} | |
MERGED: ${{ github.event.pull_request.merged }} | |
USERNAME: ${{ github.event.pull_request.user.login }} | |
TITLE: ${{ github.event.pull_request.title }} | |
URL: ${{ github.event.pull_request.html_url }} | |
run: | | |
DESCRIPTION_MESSAGE="temp" | |
if [[ "$ACTION" == "opened" ]]; then | |
DESCRIPTION_MESSAGE="[ OPENED ] 리뷰 달아주셔요" | |
elif [[ "$ACTION" == "closed" && "$MERGED" == "true" ]]; then | |
DESCRIPTION_MESSAGE="[ MERGED ] 💯💯💯" | |
else | |
DESCRIPTION_MESSAGE="[ CLOSED ] 머함요?" | |
fi | |
curl -X POST -H "Content-Type: application/json" \ | |
-d '{ | |
"embeds": [ | |
{ | |
"title": "😵 서버는 열일 중... 😵", | |
"description": "**🔥 '"$DESCRIPTION_MESSAGE"' 🔥**\n👤 '"$USERNAME"'\n🔊 '"$TITLE"'\n🔗 '"$URL"'", | |
"color": 6847432 | |
} | |
] | |
}' ${{ secrets.DISCORD_WEBHOOK_URL }}; |