Skip to content

Commit fe1820f

Browse files
committed
add notification workflow
1 parent 960cda3 commit fe1820f

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/notification.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Discord Notification
4+
5+
on:
6+
release:
7+
types:
8+
- published
9+
10+
jobs:
11+
notify:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Discord notification
16+
env:
17+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
18+
uses: Ilshidur/action-discord@master
19+
with:
20+
args: ":tada: **The {{ EVENT_PAYLOAD.repository.name }} {{ EVENT_PAYLOAD.release.tag_name }} has been released.**:tada:\nChangelog: {{EVENT_PAYLOAD.release.html_url}}"

0 commit comments

Comments
 (0)