one final. last. dead end. attempt

This commit is contained in:
Greg Gauthier 2026-02-15 14:22:06 +00:00
parent 89f4b0aeba
commit 245a56d270

View File

@ -95,17 +95,14 @@ jobs:
run: | run: |
VERSION=${GITHUB_REF#refs/tags/} VERSION=${GITHUB_REF#refs/tags/}
# Get the tag annotation message (not the commit message) # Explicitly fetch the tag with annotation
echo "Fetching tag annotation for ${VERSION}" echo "Fetching tag ${VERSION} with annotation..."
TAG_MESSAGE=$(git tag -l -n99 --format='%(contents)' ${VERSION}) git fetch origin tag ${VERSION} --force
echo "Tag annotation: ${TAG_MESSAGE}"
# If empty, try alternative method # Get the tag annotation message (not the commit message)
if [ -z "$TAG_MESSAGE" ]; then echo "Extracting tag annotation..."
echo "Trying alternative method..." TAG_MESSAGE=$(git cat-file tag ${VERSION} | sed '1,/^$/d')
TAG_MESSAGE=$(git for-each-ref refs/tags/${VERSION} --format='%(contents)') echo "Tag annotation: ${TAG_MESSAGE}"
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")