Skip to content

Commit 5adccfe

Browse files
author
Harsha240105
committed
Add Discord notification workflow
1 parent e3a6041 commit 5adccfe

4 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎.github/keep‎

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Discord Notification
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
notify:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Send to Discord
11+
env:
12+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
13+
uses: Ilshidur/action-discord@0.3.2
14+
with:
15+
args: >
16+
**[{{ EVENT_PAYLOAD.repository.full_name }}]** Push by
17+
{{ EVENT_PAYLOAD.pusher.name }} on `{{ EVENT_PAYLOAD.ref }}`
18+
> {{ EVENT_PAYLOAD.commits[0].message }}

‎a/b/test.txt‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎test.txt‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)