-
Notifications
You must be signed in to change notification settings - Fork 41
31 lines (25 loc) · 1.14 KB
/
Commit_Notifications.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
25
26
27
28
29
30
31
name: Discord_Notifications
on:
push:
branches:
- 'dev-Avalon'
- 'dev-ammo-rework'
- 'dev-bastian'
- 'dev-prism'
- 'dev'
jobs:
disord_test_message:
runs-on: ubuntu-latest
name: discord commits
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Send message to discord
uses: Sniddl/discord-commits@v1.6
with:
webhook: https://discord.com/api/webhooks/1231734104152870955/9eL1yg8taWpZP-xUd4uwcceQ9S3QeZkZhKgYmTPtvDbpj1nayy1GQTMzjd-E4jL5ecRR
template: 'plain-author'
include-extras: true
message: "We hereby report that [**{{ github.context.payload.repository.name}}**](https://github.com/${{ github.repository }}) has received following new commits in branch **${{ github.ref }}**:"
embed: '{ "title": "{{ commit.title }}", "description": "{{ commit.description }}", "url": "{{ commit.url }}", "author": { "name": "{{ commit.author.name }} ({{ commit.author.username }})", "icon_url": "https://github.com/{{ commit.author.username }}.png"} }'
last-commit-only: false