forked from stakwork/sphinx-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (24 loc) · 981 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Push
on:
push:
branches:
- master
jobs:
webhook:
name: Webhook Job
runs-on:
- ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Check out from Git
uses: actions/checkout@v2
- name: Git tag
run: echo "::set-env name=COMMIT_MSG::$(git log -1 --pretty=format:%B)"
- name: Commit Author
run: echo "::set-env name=COMMIT_AUTHOR::$(git log -1 --pretty=format:'%an')"
- name: Webhook
uses: joelwmale/webhook-action@749e2dcbc6735ce0c36e1dbbb660618cd7b5f91c
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
data: "{'bot_name': 'GithubBot', 'content': 'New push in sphinx-relay by ${{ env.COMMIT_AUTHOR }}: ${{ env.COMMIT_MSG }}', 'action': 'broadcast', 'bot_id': '87B4FDD3DD71C2B0', 'bot_secret': '${{ secrets.WEBHOOK_SECRET }}', 'chat_uuid': 'XzsnzB-numfWNUcTXGkEkoMKCt4k36C2t60a-zohJTWrL--vHjia2WQ11gwbwdAtnsYTT3fyzRhH2YF7KqiOxwnGVlkd'}"