nixos-configs/.forgejo/workflows/discord.yml
matt1432 c9b4ed5f72
All checks were successful
Discord / discord commits (push) Has been skipped
fix(workflow): write correct names
2023-12-24 16:30:04 -05:00

28 lines
621 B
YAML

name: Discord
on:
- workflow_dispatch
- push
jobs:
discord_commits:
runs-on: ubuntu-latest
name: discord commits
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
if: contains(github.event.head_commit.message, '(servers)')
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v3
- name: Setup-Nix
uses: https://github.com/cachix/install-nix-action@v24
- name: Send-Embed
working-directory: ./common/pkgs/discommit
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: nix run . $DISCORD_WEBHOOK