nixos-configs/.forgejo/workflows/discord.yml

20 lines
514 B
YAML
Raw Permalink Normal View History

2023-12-22 16:20:10 -05:00
name: Discord
on:
- workflow_dispatch
- push
2023-12-22 16:20:10 -05:00
jobs:
discord_commits:
runs-on: ubuntu-latest
name: discord commits
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:'