Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit 2894447

Browse files
committed
Trusting a model to setup a github action wasnt my greatest idea.
1 parent aa2dc43 commit 2894447

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
name: Notify Discord on Push
1+
name: Discord
2+
23
on:
3-
push:
4-
paths-ignore:
5-
- 'README.md'
4+
- workflow_dispatch
5+
- push
6+
67
jobs:
7-
discord:
8+
discord_commits:
89
runs-on: ubuntu-latest
10+
name: discord commits
911
steps:
10-
- name: Send Discord Webhook
11-
uses: dawidd6/action-discord@v2
12+
- name: Discommit
13+
uses: https://github.com/matt1432/discommit@v0.0.2
1214
with:
13-
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
14-
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
15-
content: |
16-
📢 **${{ github.actor }}** pushed to `${{ github.ref }}`
17-
Commit: ${{ github.event.head_commit.message }}
15+
discord_webhook: ${{ secrets.DISCORD_WEBHOOK }}
16+
api_url: 'https://git.nelim.org/api/v1/repos/$OWNER/$REPO/git/commits/$REF'
17+
title: 'New commit '

0 commit comments

Comments
 (0)