Skip to content

setup #38: springdoc 세팅 #13

setup #38: springdoc 세팅

setup #38: springdoc 세팅 #13

Workflow file for this run

name: Discord PR Notification
on:
pull_request:
types: [opened, ready_for_review]
jobs:
pr-notify-discord:
runs-on: ubuntu-latest
steps:
- name: Failed when draft state
id: check
if: github.event.pull_request.draft == true
run: |
echo ${{ github.event.pull_request.draft }}
echo ${{ github.event.pull_request.state }}
exit 1
- name: Notify Discord
id: notify
run: |
JSON_DATA='{
"content": "😃 ${{ github.event.pull_request.user.login }} 님이 새로운 PR을 생성했습니다.",
"embeds": [
{
"title": "${{ github.event.pull_request.title }}",
"description": "Branch : ${{ github.event.pull_request.head.ref }} -> ${{ github.event.pull_request.base.ref }}\nURL: ${{ github.event.pull_request.html_url }}",
"color": 6652927
}
]
}'
curl -X POST \
-H 'Content-Type: application/json' \
-d "$JSON_DATA" \
${{ secrets.DISCORD }}