From 2c2a486a412312007dedafbaf5dbc4dfb6c7dec2 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Thu, 4 Sep 2025 16:59:41 +0100 Subject: [PATCH] Update notify-discord.yml --- .github/workflows/notify-discord.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/notify-discord.yml b/.github/workflows/notify-discord.yml index ce47b89..3dca936 100644 --- a/.github/workflows/notify-discord.yml +++ b/.github/workflows/notify-discord.yml @@ -3,15 +3,16 @@ name: Discord Commit Notifier on: push: branches: - - '*' # triggers on all branches + - '*' jobs: notify: runs-on: ubuntu-latest - steps: - name: Send commit payload to Discord Bot + env: + URL: http://${{ secrets.DISCORDBOT }}:3000/github-commits run: | - curl -X POST http://${{ secrets.DISCORDBOT }}:3000/github-commits \ - -H "Content-Type: application/json" \ - -d '${{ toJson(github.event) }}' \ No newline at end of file + curl -sS -X POST "$URL" \ + -H 'Content-Type: application/json' \ + --data-binary "@$GITHUB_EVENT_PATH" \ No newline at end of file