mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 06:46:04 +01:00
Update notify-discord.yml
test 2
This commit is contained in:
12
.github/workflows/notify-discord.yml
vendored
12
.github/workflows/notify-discord.yml
vendored
@@ -1,18 +1,20 @@
|
|||||||
name: Discord Commit Notifier
|
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: Validate event JSON (sanity check)
|
||||||
|
run: jq -e . "$GITHUB_EVENT_PATH" >/dev/null
|
||||||
|
|
||||||
- name: Send commit payload to Discord Bot
|
- name: Send commit payload to Discord Bot
|
||||||
env:
|
env:
|
||||||
URL: http://${{ secrets.DISCORDBOT }}:3000/github-commits
|
URL: http://${{ secrets.DISCORDBOT }}:3000/github-commits
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -sS -X POST "$URL" \
|
curl -sS --fail-with-body -X POST "$URL" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-binary @"$GITHUB_EVENT_PATH"
|
--data-binary "@$GITHUB_EVENT_PATH"
|
||||||
|
|||||||
Reference in New Issue
Block a user