-
-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (37 loc) · 1.28 KB
/
discord.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Notify Discord on release
on:
release:
types: [published]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send notification to Discord
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: |
curl -X POST -H "Content-Type: application/json" \
-d '{
"content": "",
"embeds": [
{
"title": "🚀 New Release ${{ github.event.release.tag_name }}",
"description": "A new version of renoun is now available! Check out what\'s new in this release:",
"color": 3066993,
"fields": [
{
"name": "🔖 Release Notes",
"value": "${{ github.event.release.body }}"
},
{
"name": "📂 Changes",
"value": "[View Full Changelog](${{ github.event.release.html_url }})"
}
],
"footer": {
"text": "Released on ${{ github.event.release.published_at }}"
}
}
]
}' \
$DISCORD_WEBHOOK_URL