2023-12-22 16:20:10 -05:00
|
|
|
name: Discord
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'devices/oksys/*'
|
2023-12-23 02:33:26 -05:00
|
|
|
- 'devices/servivi/*'
|
2023-12-22 16:20:10 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
discord_commits:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: discord commits
|
|
|
|
env:
|
|
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: https://github.com/actions/checkout@v3
|
|
|
|
|
|
|
|
- name: setup-nix
|
|
|
|
uses: https://github.com/cachix/install-nix-action@v24
|
|
|
|
|
|
|
|
- name: update
|
|
|
|
working-directory: ./common/pkgs/discommit
|
|
|
|
env:
|
|
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
|
run: nix run . $DISCORD_WEBHOOK
|