feat(servers): test github action
All checks were successful
Discord / discord commits (push) Successful in 28s
All checks were successful
Discord / discord commits (push) Successful in 28s
This commit is contained in:
parent
0db8872da1
commit
ed04d6c879
1 changed files with 6 additions and 14 deletions
|
@ -8,20 +8,12 @@ jobs:
|
||||||
discord_commits:
|
discord_commits:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: discord commits
|
name: discord commits
|
||||||
env:
|
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
|
|
||||||
if: contains(github.event.head_commit.message, '(servers)')
|
if: contains(github.event.head_commit.message, '(servers)')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Discommit
|
||||||
uses: https://github.com/actions/checkout@v3
|
uses: https://github.com/matt1432/discommit@v0.0.2
|
||||||
|
with:
|
||||||
- name: Setup-Nix
|
discord_webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
uses: https://github.com/cachix/install-nix-action@v24
|
api_url: 'https://git.nelim.org/api/v1/repos/$OWNER/$REPO/git/commits/$REF'
|
||||||
|
title: 'New commit containing changes to server configs:'
|
||||||
- name: Send-Embed
|
|
||||||
working-directory: ./common/pkgs/discommit
|
|
||||||
env:
|
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
run: nix run . $DISCORD_WEBHOOK
|
|
||||||
|
|
Loading…
Reference in a new issue