-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate prereleases and releases for Discord Webhooks
- Loading branch information
1 parent
5e14b50
commit 570e964
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: GitHub Releases to Discord | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Latest Release | ||
if: ${{ github.event.release.prerelease == false }} | ||
uses: SethCohen/github-releases-to-discord@v1.13.1 | ||
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: "Camera Utils" | ||
footer_icon_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png" | ||
footer_timestamp: true | ||
|
||
- name: Pre-Release | ||
if: ${{ github.event.release.prerelease == true }} | ||
uses: SethCohen/github-releases-to-discord@v1.13.1 | ||
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: "Pre-Release: Camera Utils" | ||
footer_icon_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png" | ||
footer_timestamp: true |