Try to fix multiline release notes output

This commit is contained in:
Pierre Jacquier
2024-12-05 06:46:05 -05:00
parent 7950d8fdff
commit d41ddfd195
2 changed files with 6 additions and 3 deletions

View File

@ -80,7 +80,10 @@ jobs:
run: echo "version=`cat package.json | jq -r '.version'`" >> "$GITHUB_OUTPUT"
- id: export_notes
run: echo "notes=`cat release-notes.md`" >> "$GITHUB_OUTPUT"
run: |
output="$(cat release-notes.md)"
echo $output
echo "notes=$output" >> "$GITHUB_OUTPUT"
- name: Prepare electron-builder.yml file for updater test
if: ${{ env.IS_RELEASE == 'true' }}

View File

@ -1,5 +1,5 @@
#!/bin/bash
echo "## What's Changed"
git log ${PREVIOUS_TAG}..HEAD --oneline --pretty=format:%s | grep -v Bump | awk '{print "- "toupper(substr($0,0,1))substr($0,2)}'
git log ${PREVIOUS_TAG}..HEAD --oneline --pretty=format:%s | grep -v Bump | awk '{print "* "toupper(substr($0,0,1))substr($0,2)}'
echo ""
echo "Full Changelog: https://github.com/KittyCAD/modeling-app/compare/${PREVIOUS_TAG}...${TAG}"
echo "**Full Changelog**: https://github.com/KittyCAD/modeling-app/compare/${PREVIOUS_TAG}...${TAG}"