Skip to content

Merge branch 'main' of github.com:ksiscute/bronxbot #1

Merge branch 'main' of github.com:ksiscute/bronxbot

Merge branch 'main' of github.com:ksiscute/bronxbot #1

Workflow file for this run

name: Discord Notification
on:
push:
branches: [main]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send Discord Embed via Curl
run: |
PAYLOAD=$(jq -n --arg author "${{ github.actor }}" \
--arg message "${{ github.event.head_commit.message }}" \
--arg url "${{ github.event.head_commit.url }}" \
--arg timestamp "${{ github.event.head_commit.timestamp }}" \
'{
embeds: [
{
title: "🔔 New Update",
description: "[View Commit](\($url))",
color: 3447003,
fields: [
{ name: "Author", value: $author },
{ name: "Message", value: $message }
],
timestamp: $timestamp
}
]
}')
curl -X POST -H "Content-Type: application/json" \
-d "$PAYLOAD" \
${{ secrets.DISCORD_WEBHOOK }}