Update notify-discord.yml

test 2
This commit is contained in:
Jim Shield
2025-09-08 18:35:03 +01:00
parent 2942907963
commit a9832da7d7

View File

@@ -1,18 +1,20 @@
name: Discord Commit Notifier
on:
push:
branches:
- '*' # triggers on all branches
branches: ['*']
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Validate event JSON (sanity check)
run: jq -e . "$GITHUB_EVENT_PATH" >/dev/null
- name: Send commit payload to Discord Bot
env:
URL: http://${{ secrets.DISCORDBOT }}:3000/github-commits
shell: bash
run: |
curl -sS -X POST "$URL" \
curl -sS --fail-with-body -X POST "$URL" \
-H 'Content-Type: application/json' \
--data-binary @"$GITHUB_EVENT_PATH"
--data-binary "@$GITHUB_EVENT_PATH"