From 245a56d2706e029b6f66954848fb751714c3b34b Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 15 Feb 2026 14:22:06 +0000 Subject: [PATCH] one final. last. dead end. attempt --- .gitea/workflows/release.yaml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index e5bd58a..d8f6b10 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -95,17 +95,14 @@ jobs: run: | VERSION=${GITHUB_REF#refs/tags/} - # 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}" + # Explicitly fetch the tag with annotation + echo "Fetching tag ${VERSION} with annotation..." + git fetch origin tag ${VERSION} --force - # 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 + # Get the tag annotation message (not the commit message) + echo "Extracting tag annotation..." + TAG_MESSAGE=$(git cat-file tag ${VERSION} | sed '1,/^$/d') + echo "Tag annotation: ${TAG_MESSAGE}" # 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")