mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 14:06:02 +01:00
21 lines
536 B
YAML
21 lines
536 B
YAML
name: Discord Commit Notifier
|
|
on:
|
|
push:
|
|
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 --fail-with-body -X POST "$URL" \
|
|
-H 'Content-Type: application/json' \
|
|
--data-binary "@$GITHUB_EVENT_PATH"
|