Skip to content

Commit

Permalink
Discord Webhooks
Browse files Browse the repository at this point in the history
Separate prereleases and releases for Discord Webhooks
  • Loading branch information
donavanbecker committed Dec 28, 2023
1 parent be46430 commit 783a05c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/discord-webhooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This is a basic workflow to help you get started with Actions

name: Discord Webhooks

# Controls when the workflow will run
on:
release:
types: [released, prereleased]

jobs:
github-releases-to-discord:
runs-on: ubuntu-latest
name: ReleaseBannerAction
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Latest Release
if: ${{ github.event.release.prerelease == false }}
uses: SethCohen/[email protected]
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
color: "4726621"
username: "Homebridge"
avatar_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png"
footer_title: "Homebridge UI"
footer_icon_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png"
footer_timestamp: true

- name: Prerelease
if: ${{ github.event.release.prerelease == true }}
uses: SethCohen/[email protected]
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
color: "4726621"
username: "Homebridge"
avatar_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png"
footer_title: "Homebridge UI"
footer_icon_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png"
footer_timestamp: true
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ All notable changes to homebridge-config-ui-x will be documented in this file.
- Fix for backup service including npm's cache (#1949) (@sapireli)
- updated dependencies
- ignore `.venv` in hb backup files
- updated Discord Webhooks so notifications are seperated for `release` and `pre-release`

## 4.54.1 (2023-12-08)

Expand Down

0 comments on commit 783a05c

Please sign in to comment.