Skip to content

Commit 3f61990

Browse files
authored
feat: Add release notification workflow (#1457)
## Problem No automated way to notify the Discord community when a new app release is published. This will play nicely when we have proper release changelogs as well. ## Changes 1. Add code-discord-release.yml workflow triggered on GitHub release publish 2. Use SethCohen/github-releases-to-discord action to post release notes 3. Requires DISCORD_RELEASE_WEBHOOK_URL repo secret ## How did you test this? I tested the webhook and set the secret, but not this action.
1 parent e97c599 commit 3f61990

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release PostHog Code to Discord
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
# No GITHUB_TOKEN permissions needed -- only calls an external webhook
8+
permissions: {}
9+
10+
jobs:
11+
notify:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: SethCohen/github-releases-to-discord@37afa88c8c9302a9307244b5a0d4e782d528a4b5 # v1.15.1
15+
with:
16+
webhook_url: ${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}

0 commit comments

Comments
 (0)