feat(servers): test github action
All checks were successful
Discord / discord commits (push) Successful in 28s

This commit is contained in:
matt1432 2024-01-11 17:22:35 -05:00
parent 0db8872da1
commit ed04d6c879

View file

@ -8,20 +8,12 @@ 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
- 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:'