Skip to content
This repository was archived by the owner on May 19, 2026. It is now read-only.

Commit dd82c2c

Browse files
new workflow
1 parent afe341c commit dd82c2c

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

‎github/workflows/discord_bot.yml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Discord Webhook Notification
2+
3+
on: [push]
4+
5+
jobs:
6+
notify:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Code
10+
uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Get Total Commits
15+
id: count
16+
run: |
17+
echo "total=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT
18+
19+
- name: Discord Webhook Action
20+
uses: tsickert/discord-webhook@v5.3.0
21+
with:
22+
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
23+
embed-color: 3447003
24+
embed-thumbnail-url: "https://github.githubassets.com/images/modules/logos_page/Octocat.png"
25+
content: "😎️😏️🏗️💯️💻️🔥️ :ANOTHER LEGEND JUST PUSHED CODE!"
26+
embed-description: |
27+
The GOAT ```fix
28+
${{ github.actor }}
29+
``` just committed ```diff
30+
+ ${{ github.event.head_commit.message }}
31+
``` in the repo ```ini
32+
[${{ github.repository }}]
33+
``` at ```bash
34+
"${{ github.event.head_commit.timestamp }}"
35+
```!! This is commit number ```yaml
36+
${{ steps.count.outputs.total }}
37+
``` for this repo.

0 commit comments

Comments
 (0)