Skip to content

Commit

Permalink
Update discord.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyphonic authored Dec 14, 2024
1 parent 398ca8c commit ec28ba0
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/discord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,9 @@ jobs:
send-webhook:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- 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 }}
curl -H "Content-Type: application/json" -d @.github/workflows/Webhook.json ${{ secrets.WEBHOOK_URL }}

0 comments on commit ec28ba0

Please sign in to comment.