Merge pull request #262 from DeveloperAcademy-POSTECH/dev #16
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
| # .github/workflows/discord-main-push.yml | |
| name: Notify Discord on main push | |
| on: | |
| push: | |
| branches: | |
| - main # main 브랜치에 push 발생 시만 트리거 | |
| jobs: | |
| notify-discord: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Send fixed message to Discord | |
| run: | | |
| curl -H "Content-Type: application/json" \ | |
| -X POST \ | |
| -d '{ | |
| "username": "GitHub", | |
| "content": "> [병합한 후 ✅] main branch가 수정되었으므로 **현재 작업중인 브랜치**에 병합해주세요!!" | |
| }' \ | |
| ${{ secrets.DISCORD_WEBHOOK_URL }} |