Update notify-discord.yml

This commit is contained in:
Jim Shield
2025-09-04 16:59:41 +01:00
parent 16e957116e
commit 2c2a486a41

View File

@@ -3,15 +3,16 @@ name: Discord Commit Notifier
on: on:
push: push:
branches: branches:
- '*' # triggers on all branches - '*'
jobs: jobs:
notify: notify:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Send commit payload to Discord Bot - name: Send commit payload to Discord Bot
env:
URL: http://${{ secrets.DISCORDBOT }}:3000/github-commits
run: | run: |
curl -X POST http://${{ secrets.DISCORDBOT }}:3000/github-commits \ curl -sS -X POST "$URL" \
-H "Content-Type: application/json" \ -H 'Content-Type: application/json' \
-d '${{ toJson(github.event) }}' --data-binary "@$GITHUB_EVENT_PATH"