2023-12-22 16:20:10 -05:00
|
|
|
name: Discord
|
|
|
|
|
|
|
|
on:
|
2023-12-24 16:28:26 -05:00
|
|
|
- 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 }}
|
|
|
|
|
2023-12-24 16:28:26 -05:00
|
|
|
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
|