fix: SSE 호출부 수정 및 이전에 삭제한 레포를 재등록 했을 때 unique 제약 위반하는 오류 수정 #46
This file contains hidden or 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: Discord PR Notification | |
| on: | |
| pull_request: | |
| types: [opened, reopened] | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Send Discord Notification | |
| env: | |
| DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| run: | | |
| curl -H "Content-Type: application/json" \ | |
| -d '{ | |
| "content": "🚀 **새로운 PR이 도착했습니다!**", | |
| "embeds": [{ | |
| "title": "${{ github.event.pull_request.title }}", | |
| "url": "${{ github.event.pull_request.html_url }}", | |
| "color": 3447003, | |
| "thumbnail": { | |
| "url": "${{ github.event.pull_request.user.avatar_url }}" | |
| }, | |
| "fields": [ | |
| { | |
| "name": "작성자", | |
| "value": "${{ github.actor }}", | |
| "inline": true | |
| }, | |
| { | |
| "name": "브랜치", | |
| "value": "${{ github.event.pull_request.head.ref }} ➡️ ${{ github.event.pull_request.base.ref }}", | |
| "inline": true | |
| } | |
| ] | |
| }] | |
| }' \ | |
| $DISCORD_WEBHOOK |