mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Some checks failed
CI / GitHub Env Debug (push) Has been cancelled
CI / Setup Release (push) Has been cancelled
CI / Linux Flatpak (aarch64, ubuntu-22.04-arm) (push) Has been cancelled
CI / Linux Flatpak (x86_64, ubuntu-22.04) (push) Has been cancelled
CI / Linux AppImage (push) Has been cancelled
CI / Homebrew (macos-13) (push) Has been cancelled
CI / Homebrew (macos-14) (push) Has been cancelled
CI / Homebrew (ubuntu-latest) (push) Has been cancelled
CI / Homebrew (ubuntu-latest (Release)) (push) Has been cancelled
CI / Windows (push) Has been cancelled
CI Docker / Check Dockerfiles (push) Has been cancelled
CI Docker / Setup Release (push) Has been cancelled
CI Docker / Docker${{ matrix.tag }} (push) Has been cancelled
CodeQL / Get language matrix (push) Has been cancelled
CodeQL / Analyze (${{ matrix.name }}) (push) Has been cancelled
Build GH-Pages / prep (push) Has been cancelled
Build GH-Pages / call-jekyll-build (push) Has been cancelled
localize / Update Localization (push) Has been cancelled
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
---
|
|
name: Release Notifications (Moonlight)
|
|
permissions: {}
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- released # this triggers when a release is published, but does not include prereleases or drafts
|
|
|
|
jobs:
|
|
discord:
|
|
if: github.repository_owner == 'LizardByte'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check if latest GitHub release
|
|
id: check-release
|
|
uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const latestRelease = await github.rest.repos.getLatestRelease({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo
|
|
});
|
|
|
|
core.setOutput('isLatestRelease', latestRelease.data.tag_name === context.payload.release.tag_name);
|
|
|
|
- name: discord
|
|
if: steps.check-release.outputs.isLatestRelease == 'true'
|
|
uses: sarisia/actions-status-discord@v1
|
|
with:
|
|
avatar_url: ${{ vars.ORG_LOGO_URL }}256
|
|
color: 0x${{ vars.COLOR_HEX_GREEN }}
|
|
description: ${{ github.event.release.body }}
|
|
nodetail: true
|
|
nofail: false
|
|
title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released
|
|
username: ${{ secrets.DISCORD_USERNAME }}
|
|
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_MOONLIGHT }}
|