Skip to content

Commit dda47cc

Browse files
committed
ci(release): update release workflow to use clean changelog
- Replace multiline changelog output with clean_changelog - Simplify changelog addition to RELEASE_CHANGELOG environment variable Signed-off-by: diverger <[email protected]>
1 parent 46541fa commit dda47cc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ jobs:
117117
echo "RELEASE_VERSION=${{ steps.bump_version.outputs.version }}" >> $GITHUB_ENV
118118
echo "RELEASE_TAG=${{ steps.bump_version.outputs.tag }}" >> $GITHUB_ENV
119119
echo "RELEASE_CHANGELOG<<EOF" >> $GITHUB_ENV
120-
cat << 'CHANGELOG_EOF' >> $GITHUB_ENV
121-
${{ steps.bump_version.outputs.changelog }}
122-
CHANGELOG_EOF
120+
echo "${{ steps.bump_version.outputs.clean_changelog }}" >> $GITHUB_ENV
121+
echo "EOF" >> $GITHUB_ENV
123122
124123
# - name: 🏗️ Create empty release or modify a release existed
125124
# id: create_release

0 commit comments

Comments
 (0)