From 2f5a61f39a20efeaa01b30618eb492bf0b29f0c3 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Mon, 7 Aug 2023 14:07:29 +0000 Subject: [PATCH] ci: fix release tags --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 19ae71f..a3c816c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,12 +34,16 @@ jobs: id: changes name: Check annotated tag run: | + git fetch --tags -f title=$(git for-each-ref --format="%(contents:subject)" ${GITHUB_REF}) body=$(git for-each-ref --format="%(contents:body)" ${GITHUB_REF}) tag="${GITHUB_REF#refs/tags/}" if test "$title" = "Version ${tag#v}" -a -n "$body"; then echo "title=$title" >> "$GITHUB_OUTPUT" - echo "body=$body" >> "$GITHUB_OUTPUT" + DELIM=$(uuid) + echo "body<<$DELIM" >> "$GITHUB_OUTPUT" + echo "$body" >> "$GITHUB_OUTPUT" + echo "$DELIM" >> "$GITHUB_OUTPUT" else echo "::error title=Missing tag annotation::$tag" changelog=$(git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD)