-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.29 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
40
41
42
43
name: Send JSON to Discord
on:
push:
branches:
- main
jobs:
send-webhook:
runs-on: ubuntu-latest
steps:
- name: Send JSON to Discord
run: |
curl -H "Content-Type: application/json" -d '{
"content": null,
"embeds": [
{
"title": "New Release 🧰",
"color": 6291288,
"fields": [
{
"name": "Commit ⚡",
"value": "Message » \"'"'"'${{ github.event.head_commit.message }}'"'"'\"\n\nCommit SHA » \"'"'"'${{ github.sha }}'"'"'\""
},
{
"name": "Workflow ☢️",
"value": "Branch » \"'"'"'${{ github.ref }}'"'"'\"\n\nWorkflow Runtime » \"\""
},
{
"name": "Release 📦",
"value": "Download » \"\""
}
],
"author": {
"name": "'"'"'${{ github.actor }}'"'"'"
},
"footer": {
"text": "[Main Repository 🔑](https://github.com/Hyphonic/Conquest)"
}
}
],
"attachments": []
}' ${{ secrets.WEBHOOK_URL }}