From ed04d6c879caad98f55e0362d58ce0994c1eb3db Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 11 Jan 2024 17:22:35 -0500 Subject: [PATCH] feat(servers): test github action --- .forgejo/workflows/discord.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.forgejo/workflows/discord.yml b/.forgejo/workflows/discord.yml index d8ebc358..18d6d0ad 100644 --- a/.forgejo/workflows/discord.yml +++ b/.forgejo/workflows/discord.yml @@ -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:'