Skip to content

Commit

Permalink
Added workflow improvement (Discord commit notifications)
Browse files Browse the repository at this point in the history
I currently have the discord webhook commented out, as I do not know if we have one, and where it is currently linked to. If this is for internal development, then we will need to make a new one and label it as such so I can update this

This system is also configured just to give notifications on dev branches, and a quick edit can be made, and then put into main for only notifications in main
  • Loading branch information
Avalon2106 committed Apr 23, 2024
1 parent a9db6fe commit b0d4cad
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/Commit_Notifications.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Discord_Notifications

on:
push:
branches:
- 'dev'
- 'dev-Avalon'
- 'dev-ammo-rework'
- 'dev-bastian'
- 'dev-prism'


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: ${{ secrets.DISCORD_WEBHOOK }}
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

0 comments on commit b0d4cad

Please sign in to comment.