Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
fetch-depth: 0

- name: Extract changelog for this version
- name: Extract and Linkify Changelog
id: changelog
run: |
TAG="${GITHUB_REF_NAME}"
Expand All @@ -30,8 +30,10 @@ jobs:
found { print }
" "$CHANGELOG")

LINKIFIED_BODY=$(echo "$BODY" | sed -E 's/\(#([0-9]+)\)/([#\1](https:\/\/github.com\/'"${GITHUB_REPOSITORY}"'\/pull\/\1))/g')

echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" >> $GITHUB_OUTPUT
echo "$LINKIFIED_BODY" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Create GitHub Release
Expand All @@ -47,12 +49,13 @@ jobs:
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
content: "@everyone A new update has been published!"
title: "🍁 Release ${{ github.ref_name }}"
notitle: true
description: |
${{ steps.changelog.outputs.body }}
# [🍁 ${{ github.ref_name }}](https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }})

[View Full Release on GitHub](${{ steps.create_release.outputs.url || format('https://github.com/{0}/releases/tag/{1}', github.repository, github.ref_name) }})
${{ steps.changelog.outputs.body }}

nodetail: true
color: 0xA728F3
username: Nova Release
avatar_url: https://raw.githubusercontent.com/nova-guild/nova/main/nova-release.png
Loading