Update discord.yml #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |