Skip to content

Commit 20310b5

Browse files
committed
ci: add Discord notification for new releases
Introduced a GitHub Actions workflow to send release notifications to a Discord channel. The workflow triggers on release publishing and supports manual dispatch, ensuring important updates are shared efficiently.
1 parent d3aeade commit 20310b5

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
release:
3+
types: [ published ]
4+
workflow_dispatch:
5+
6+
jobs:
7+
github-releases-to-discord:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
- name: GitHub Releases to Discord
13+
uses: SethCohen/github-releases-to-discord@v1
14+
with:
15+
webhook_url: ${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}
16+
color: "8892be"
17+
username: "Release Changelog"
18+
avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png"
19+
content: "||@everyone||"
20+
footer_title: "Changelog"
21+
reduce_headings: true

0 commit comments

Comments
 (0)