Skip to content

Commit 2bf0cbc

Browse files
authored
chore :: discod
1 parent 8636984 commit 2bf0cbc

File tree

1 file changed

+10
-65
lines changed

1 file changed

+10
-65
lines changed

.github/workflows/android-production-deploy-play-store.yml

Lines changed: 10 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -79,72 +79,17 @@ jobs:
7979
prerelease: false
8080

8181
- name: Notify Discord on Success
82-
if: ${{ success() }}
82+
if: success()
8383
id: discord-success
84-
uses: Ilshidur/[email protected]
85-
env:
86-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
87-
DISCORD_USERNAME: 깡통 로켓
88-
DISCORD_EMBEDS: |
89-
[
90-
{
91-
"title": "🚀 앱이 배포되었습니다.",
92-
"color": "#36a64f",
93-
"description": "https://github.com/${{github.repository}}",
94-
"fields": [
95-
{
96-
"name": "Repository",
97-
"value": "${{ github.repository }}",
98-
"inline": true
99-
},
100-
{
101-
"name": "Tag",
102-
"value": "${{ github.ref_name }}",
103-
"inline": true
104-
},
105-
{
106-
"name": "Version",
107-
"value": "${{ steps.get_tag.outputs.name }}",
108-
"inline": true
109-
},
110-
{
111-
"name": "Release Note",
112-
"value": "${{ env.RELEASE_NOTE }}",
113-
"inline": false
114-
},
115-
]
116-
}
117-
]
84+
run: |
85+
curl -H "Content-Type: application/json" \
86+
-d '{"content": "🚀 앱이 배포되었습니다.\nTag: ${{ github.ref_name }}\n Version: ${{ steps.get_tag.outputs.name }}\nRelease Note: ${{ env.RELEASE_NOTE }}"}' \
87+
${{ secrets.DISCORD_WEBHOOK_URL }}
11888
11989
- name: Notify Discord on Failure
120-
if: ${{ failure() }}
12190
id: discord-failure
122-
uses: Ilshidur/[email protected]
123-
env:
124-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
125-
DISCORD_USERNAME: 깡통 로켓
126-
DISCORD_EMBEDS: |
127-
[
128-
{
129-
"title": "💣 앱 배포에 실패했어요 ㅠㅠ",
130-
"color": "#ff0000",
131-
"description": "https://github.com/${{github.repository}}",
132-
"fields": [
133-
{
134-
"name": "Repository",
135-
"value": "${{ github.repository }}",
136-
"inline": true
137-
},
138-
{
139-
"name": "Tag",
140-
"value": "${{ github.ref_name }}",
141-
"inline": true
142-
},
143-
{
144-
"name": "Version",
145-
"value": "${{ steps.get_tag.outputs.name }}",
146-
"inline": true
147-
},
148-
]
149-
}
150-
]
91+
if: failure()
92+
run: |
93+
curl -H "Content-Type: application/json" \
94+
-d '{"content": "💣 앱 배포에 실패했어요 ㅠㅠ\nTag: ${{ github.ref_name }}\nVersion: ${{ steps.get_tag.outputs.name }}"}' \
95+
${{ secrets.DISCORD_WEBHOOK_URL }}

0 commit comments

Comments
 (0)