Skip to content

Update Commit_Notifications.yml #12

Update Commit_Notifications.yml

Update Commit_Notifications.yml #12

name: Discord_Notifications
on:
push:
branches:
- 'dev-Avalon'
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