From e519d871937fb243afa8a68ed611686571ddf084 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 15 Feb 2026 13:36:22 +0000 Subject: [PATCH] make sure release message is included in release notes --- .gitea/workflows/release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index c31fcda..e66d79b 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -92,6 +92,9 @@ jobs: run: | VERSION=${GITHUB_REF#refs/tags/} + # Get the tag message + TAG_MESSAGE=$(git tag -l --format='%(contents)' ${VERSION}) + # Create release curl -X POST "https://repos.gmgauthier.com/api/v1/repos/${GITHUB_REPOSITORY}/releases" \ -H "Authorization: token ${GITEA_TOKEN}" \ @@ -99,7 +102,7 @@ jobs: -d "{ \"tag_name\": \"${VERSION}\", \"name\": \"NotePad ${VERSION}\", - \"body\": \"Release ${VERSION}\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\`\" + \"body\": \"${TAG_MESSAGE}\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\`\" }" > release_response.json RELEASE_ID=$(cat release_response.json | grep -o '"id":[0-9]*' | head -1 | cut -d':' -f2)