nixos-configs/.forgejo/workflows/discord.yml
matt1432 ba42cfa88a
All checks were successful
Discord / discord commits (push) Successful in 1m14s
fix(servers): put correct url in embed title
2023-12-24 16:28:26 -05:00

27 lines
617 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: update
working-directory: ./common/pkgs/discommit
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: nix run . $DISCORD_WEBHOOK