You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
980 B
24 lines
980 B
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'}"
|