mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-17 06:16:02 +01:00
Update notify-discord.yml
This commit is contained in:
11
.github/workflows/notify-discord.yml
vendored
11
.github/workflows/notify-discord.yml
vendored
@@ -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) }}'
|
||||
curl -sS -X POST "$URL" \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-binary "@$GITHUB_EVENT_PATH"
|
||||
Reference in New Issue
Block a user