Sunshine/.github/workflows/release-notifier-moonlight.yml

28 lines
897 B
YAML
Raw Normal View History

2022-10-25 14:38:03 +00:00
---
name: Release Notifications (Moonlight)
on:
release:
2024-05-24 01:42:06 +00:00
types:
- released # this triggers when a release is published, but does not include prereleases or drafts
2022-10-25 14:38:03 +00:00
jobs:
discord:
2024-05-24 01:42:06 +00:00
if: >-
startsWith(github.repository, 'LizardByte/') &&
!github.event.release.prerelease &&
!github.event.release.draft
2022-10-25 14:38:03 +00:00
runs-on: ubuntu-latest
steps:
- name: discord
uses: sarisia/actions-status-discord@v1 # https://github.com/sarisia/actions-status-discord
with:
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_MOONLIGHT }}
nodetail: true
nofail: false
username: ${{ secrets.DISCORD_USERNAME }}
avatar_url: ${{ secrets.ORG_LOGO_URL }}
title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released
description: ${{ github.event.release.body }}
color: 0xFF4500