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

28 lines
621 B
YAML
Raw 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
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
if: contains(github.event.head_commit.message, '(servers)')
2023-12-22 16:20:10 -05:00
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v3
2023-12-24 16:30:04 -05:00
- name: Setup-Nix
2023-12-22 16:20:10 -05:00
uses: https://github.com/cachix/install-nix-action@v24
2023-12-24 16:30:04 -05:00
- name: Send-Embed
2023-12-22 16:20:10 -05:00
working-directory: ./common/pkgs/discommit
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: nix run . $DISCORD_WEBHOOK