Skip to content

Update discord.yml

Update discord.yml #9

Workflow file for this run

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.DISCORD_WEBHOOK_URL }}