File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,12 +89,34 @@ jobs:
8989 if : success()
9090 run : |
9191 curl -X POST -H 'Content-type: application/json' \
92- --data '{"text":"✅ *배포 성공!* 🎉\n브랜치: `${{ github.ref_name }}`"}' \
92+ --data '{
93+ "text": "✅ *배포 성공!* 🎉",
94+ "blocks": [
95+ {
96+ "type": "section",
97+ "text": {
98+ "type": "mrkdwn",
99+ "text": "*✅ 배포 성공했습니다!*\n\n*브랜치:* `${{ github.ref_name }}`\n<http://3.39.158.229:8080/actuator/health|🔗 배포된 서비스 상태 보기>"
100+ }
101+ }
102+ ]
103+ }' \
93104 ${{ secrets.SLACK_WEBHOOK_URL }}
94105
95106 - name : Notify Slack - 배포 실패
96107 if : failure()
97108 run : |
98109 curl -X POST -H 'Content-type: application/json' \
99- --data '{"text":"❌ *배포 실패!* 🔥 확인이 필요합니다.\n브랜치: `${{ github.ref_name }}`"}' \
110+ --data '{
111+ "text": "❌ *배포 실패!* 🔥",
112+ "blocks": [
113+ {
114+ "type": "section",
115+ "text": {
116+ "type": "mrkdwn",
117+ "text": "*❌ 배포 실패했습니다!*\n\n*브랜치:* `${{ github.ref_name }}`\n<http://3.39.158.229:8080/actuator/health|🔗 배포 상태 확인 (수동 접속 필요)>"
118+ }
119+ }
120+ ]
121+ }' \
100122 ${{ secrets.SLACK_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments