-
-
Notifications
You must be signed in to change notification settings - Fork 64
26 lines (23 loc) · 883 Bytes
/
discord-notify.yml
File metadata and controls
26 lines (23 loc) · 883 Bytes
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
name: Discord Release Notification
on:
release:
types: [published]
jobs:
notify-discord:
name: Notify Discord Channel
runs-on: ubuntu-latest
if: github.event.release.prerelease == false
steps:
- name: Send Discord Message
env:
# Pulls the secure webhook URL from your repository secrets
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: |
curl -H "Content-Type: application/json" \
-X POST \
-d '{
"username": "GitHub Releases",
"avatar_url": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",
"content": "🚀 **A new Matcha release has been published!**\n\n**Release:** ${{ github.event.release.name }}\n\nCheck it out here: ${{ github.event.release.html_url }}"
}' \
$DISCORD_WEBHOOK_URL