annotation message. not commit message

This commit is contained in:
Greg Gauthier 2026-02-15 14:08:31 +00:00
parent 43281e047d
commit b832ba5f8f

View File

@ -94,12 +94,17 @@ jobs:
run: | run: |
VERSION=${GITHUB_REF#refs/tags/} VERSION=${GITHUB_REF#refs/tags/}
# Get the tag message # Get the tag annotation message (not the commit message)
echo "Fetching tag message for ${VERSION}" echo "Fetching tag annotation for ${VERSION}"
git tag -l ${VERSION} TAG_MESSAGE=$(git tag -l -n99 --format='%(contents)' ${VERSION})
git show ${VERSION} --format=%B --no-patch echo "Tag annotation: ${TAG_MESSAGE}"
TAG_MESSAGE=$(git tag -l --format='%(contents)' ${VERSION})
echo "Tag message: ${TAG_MESSAGE}" # If empty, try alternative method
if [ -z "$TAG_MESSAGE" ]; then
echo "Trying alternative method..."
TAG_MESSAGE=$(git for-each-ref refs/tags/${VERSION} --format='%(contents)')
echo "Alternative result: ${TAG_MESSAGE}"
fi
# Create release body # Create release body
RELEASE_BODY=$(printf "%s\n\n## Downloads\n\n### Linux\n- **AppImage**: Portable, single-file executable (no installation needed)\n- **Tarball**: Extract and run \`sudo ./install.sh\` to install\n\n### Windows\n- **Zip**: Extract and run \`NotePad.exe\`" "$TAG_MESSAGE") RELEASE_BODY=$(printf "%s\n\n## Downloads\n\n### Linux\n- **AppImage**: Portable, single-file executable (no installation needed)\n- **Tarball**: Extract and run \`sudo ./install.sh\` to install\n\n### Windows\n- **Zip**: Extract and run \`NotePad.exe\`" "$TAG_MESSAGE")