Skip to content

Commit 6e2e519

Browse files
committed
ci: fix release tags
1 parent 5af64ef commit 6e2e519

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@ jobs:
3434
id: changes
3535
name: Check annotated tag
3636
run: |
37+
git fetch --tags -f
3738
title=$(git for-each-ref --format="%(contents:subject)" ${GITHUB_REF})
3839
body=$(git for-each-ref --format="%(contents:body)" ${GITHUB_REF})
3940
tag="${GITHUB_REF#refs/tags/}"
4041
if test "$title" = "Version ${tag#v}" -a -n "$body"; then
4142
echo "title=$title" >> "$GITHUB_OUTPUT"
42-
echo "body=$body" >> "$GITHUB_OUTPUT"
43+
DELIM=$(openssl rand -hex 8)
44+
echo "body<<$DELIM" >> "$GITHUB_OUTPUT"
45+
echo "$body" >> "$GITHUB_OUTPUT"
46+
echo "$DELIM" >> "$GITHUB_OUTPUT"
4347
else
4448
echo "::error title=Missing tag annotation::$tag"
4549
changelog=$(git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD)

0 commit comments

Comments
 (0)