mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-10-29 11:23:23 +00:00
Bumps the github-actions group with 3 updates in the / directory: [actions/setup-node](https://github.com/actions/setup-node), [actions/setup-python](https://github.com/actions/setup-python) and [actions/github-script](https://github.com/actions/github-script). Updates `actions/setup-node` from 4 to 5 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v5) Updates `actions/setup-python` from 5 to 6 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5...v6) Updates `actions/github-script` from 7 to 8 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v7...v8) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/github-script dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@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@v8
|
|
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 }}
|