nixos-configs/.forgejo/workflows/discord.yml
matt1432 ed04d6c879
All checks were successful
Discord / discord commits (push) Successful in 28s
feat(servers): test github action
2024-01-11 17:22:35 -05:00

20 lines
514 B
YAML

name: Discord
on:
- workflow_dispatch
- push
jobs:
discord_commits:
runs-on: ubuntu-latest
name: discord commits
if: contains(github.event.head_commit.message, '(servers)')
steps:
- 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:'