From b832ba5f8fc77788fbcf401776590b2601916b54 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 15 Feb 2026 14:08:31 +0000 Subject: [PATCH] annotation message. not commit message --- .gitea/workflows/release.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 0969be4..ac9578e 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -94,12 +94,17 @@ jobs: run: | VERSION=${GITHUB_REF#refs/tags/} - # Get the tag message - echo "Fetching tag message for ${VERSION}" - git tag -l ${VERSION} - git show ${VERSION} --format=%B --no-patch - TAG_MESSAGE=$(git tag -l --format='%(contents)' ${VERSION}) - echo "Tag message: ${TAG_MESSAGE}" + # Get the tag annotation message (not the commit message) + echo "Fetching tag annotation for ${VERSION}" + TAG_MESSAGE=$(git tag -l -n99 --format='%(contents)' ${VERSION}) + echo "Tag annotation: ${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 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")