Skip to content

feat [#49] μœ μ € ν”„λ‘œν•„ 쑰회 κΈ°λŠ₯ #40

feat [#49] μœ μ € ν”„λ‘œν•„ 쑰회 κΈ°λŠ₯

feat [#49] μœ μ € ν”„λ‘œν•„ 쑰회 κΈ°λŠ₯ #40

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