Skip to content

Commit 0f2a230

Browse files
authored
fix: correct workflow
1 parent 7e9e717 commit 0f2a230

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ jobs:
5454
TAG=$([ "$BRANCH" = "main" ] && echo "$NEW_VERSION" || echo "next-$NEW_VERSION")
5555
TITLE=$([ "$BRANCH" = "main" ] && echo "Release $NEW_VERSION" || echo "Pre-release $TAG")
5656
PRERELEASE=$([ "$BRANCH" = "main" ] && echo "false" || echo "true")
57+
NOTES=$(git log ${LATEST_TAG:+${LATEST_TAG}..HEAD} --pretty=format:'%s' | sed 's/^/- /' | jq -R -s -c .)
5758
5859
echo "tag=$TAG" >> $GITHUB_OUTPUT
5960
echo "title=$TITLE" >> $GITHUB_OUTPUT
6061
echo "prerelease=$PRERELEASE" >> $GITHUB_OUTPUT
61-
echo "notes=$(git log ${LATEST_TAG:+${LATEST_TAG}..HEAD} --pretty=format:'- %s')" >> $GITHUB_OUTPUT
62+
echo "notes=$NOTES" >> $GITHUB_OUTPUT
6263
6364
- name: Run tests
6465
if: steps.version.outputs.tag

0 commit comments

Comments
 (0)