-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert to reusable workflow using .github repo so moving this repo to caller workflow.
- Loading branch information
1 parent
a394edc
commit 0273679
Showing
2 changed files
with
8 additions
and
29 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 |
---|---|---|
|
@@ -9,31 +9,9 @@ on: | |
|
||
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 APT Package" | ||
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-Release: Homebridge APT Package" | ||
footer_icon_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png" | ||
footer_timestamp: true | ||
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest | ||
with: | ||
footer_title: "Homebridge APT Package" | ||
secrets: | ||
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }} | ||
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }} |
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ | |
.pnpm-debug.log | ||
Packages | ||
Release | ||
staging/ | ||
staging/ | ||
.DS_Store |