2023-12-22 16:20:10 -05:00
|
|
|
name: Discord
|
|
|
|
|
|
|
|
on:
|
2023-12-24 16:28:26 -05:00
|
|
|
- workflow_dispatch
|
|
|
|
- push
|
2023-12-22 16:20:10 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
discord_commits:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: discord commits
|
2023-12-24 16:28:26 -05:00
|
|
|
if: contains(github.event.head_commit.message, '(servers)')
|
|
|
|
|
2023-12-22 16:20:10 -05:00
|
|
|
steps:
|
2024-01-11 17:22:35 -05:00
|
|
|
- name: Discommit
|
|
|
|
uses: https://github.com/matt1432/discommit@v0.0.2
|
|
|
|
with:
|
|
|
|
discord_webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
|
api_url: 'https://git.nelim.org/api/v1/repos/$OWNER/$REPO/git/commits/$REF'
|
|
|
|
title: 'New commit containing changes to server configs:'
|