Skip to content

Commit 62970f2

Browse files
committed
Revert "Please"
This reverts commit d635091.
1 parent d635091 commit 62970f2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,14 @@ jobs:
6969
run: |
7070
TAG=${GITHUB_REF##*/}
7171
echo "tag=$TAG" >> $GITHUB_OUTPUT
72-
# Extract the annotated tag message using git show
73-
BODY=$(git show -s --format=%b refs/tags/$TAG 2>/dev/null || echo "")
74-
# If empty, try the subject line
72+
# Try to read annotated tag contents
73+
BODY=$(git for-each-ref --format='%(contents)' refs/tags/$TAG 2>/dev/null || true)
7574
if [ -z "$BODY" ]; then
76-
BODY=$(git show -s --format=%s refs/tags/$TAG 2>/dev/null || echo "")
75+
BODY=$(git tag -l --format='%(contents)' "$TAG" 2>/dev/null || true)
7776
fi
78-
# Fallback: get full message (subject + body)
77+
# Fallback to commit message if no tag message
7978
if [ -z "$BODY" ]; then
80-
BODY=$(git show -s --format=%B refs/tags/$TAG 2>/dev/null || echo "")
79+
BODY=$(git log -1 --pretty=%B)
8180
fi
8281
echo "body<<EOF" >> $GITHUB_OUTPUT
8382
echo "$BODY" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)