From fd325408fbade43405383193a1e1c8869a38d3d8 Mon Sep 17 00:00:00 2001 From: Chanmi Hwang <86944161+cchanmi@users.noreply.github.com> Date: Sun, 8 Dec 2024 22:19:56 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=ED=8F=AC=20=EC=99=84=EB=A3=8C,=20?= =?UTF-8?q?=EC=8B=A4=ED=8C=A8=20discord=20=EC=97=B0=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/smeem-release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/smeem-release.yml b/.github/workflows/smeem-release.yml index ba2e8a22..120f9ff3 100644 --- a/.github/workflows/smeem-release.yml +++ b/.github/workflows/smeem-release.yml @@ -85,3 +85,15 @@ jobs: issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }} api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }} + - name: Send Discord Notification on Success + if: success() # 배포가 성공했을 때만 실행 + run: | + curl -H "Content-Type: application/json" -X POST -d '{ + "content": "🚀 Smeem 배포가 성공적으로 완료되었습니다! 🎉" + }' ${{ secrets.DISCORD_WEBHOOK_URL_RELEASE }} + - name: Send Discord Notification on Failure + if: failure() # 배포가 실패했을 때만 실행 + run: | + curl -H "Content-Type: application/json" -X POST -d '{ + "content": "❌ Smeem 배포에 실패했습니다. 확인이 필요합니다." + }' ${{ secrets.DISCORD_WEBHOOK_URL_RELEASE }}