Skip to content

Send Release Notifications #4

Send Release Notifications

Send Release Notifications #4

name: Send Release Notifications
on:
workflow_dispatch:
release:
types: [published]
jobs:
release-notification-output:
runs-on: ubuntu-latest
outputs:
changeLogText: ${{ steps.readChanglog.outputs.text }}
steps:
- name: Clone Project
uses: actions/checkout@v4
with:
fetch-depth: 0 # gets git history for changelogs
- name: Hack around https://github.com/actions/checkout/issues/290
run: |
git fetch --tags --force
- name: Generate Changelog
id: Changelog
run: ./generate_changelog.sh
- name: Save Changelog in Variable
uses: Stanzilla/[email protected]
id: readChanglog
with:
path: CHANGELOG.md
discord-release-notification:
runs-on: ubuntu-latest
needs: release-notification-output
env:
MESSAGE: "New Cell_UnitFrames Release"
steps:
- name: Send Discord Notification
id: discord
uses: tsickert/[email protected]
if: success()
with:
webhook-url: ${{ secrets.RELEASE_WEBHOOK_URL }}
embed-title: ${{ env.MESSAGE }}
embed-url: https://github.com/Krealle/Cell_UnitFrames/releases/latest
embed-description: ${{needs.release-notification-output.outputs.changeLogText}}