-
-
Notifications
You must be signed in to change notification settings - Fork 251
39 lines (35 loc) · 1.58 KB
/
discord-webhooks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/[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 Docker Image"
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/[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: "Pre-Reelase: Homebridge Docker Image"
footer_icon_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png"
footer_timestamp: true