Skip to content

hotfix [#81] ArtistResolver 수동으로 매핑하는 방법으로 변경 #67

hotfix [#81] ArtistResolver 수동으로 매핑하는 방법으로 변경

hotfix [#81] ArtistResolver 수동으로 매핑하는 방법으로 변경 #67

Workflow file for this run

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 }};