try fixing the changelog echo

This commit is contained in:
Ell 2024-11-04 22:28:48 +01:00
parent a20b857727
commit f3c7f87733

View file

@ -22,8 +22,13 @@ jobs:
- name: Grab Changelog from Commit Message Body
run: |
changelog=$(echo -e "$MESSAGE" | sed -n '/^$/,$p' | sed '1d')
echo $changelog
echo "CHANGELOG=$changelog" >> $GITHUB_ENV
echo -e "$changelog"
{
echo 'CHANGELOG<<EOF'
echo -e "$changelog"
echo EOF
} >> "$GITHUB_ENV"
echo -e "CHANGELOG=$changelog" >> $GITHUB_ENV
env:
MESSAGE: ${{ github.event.head_commit.message }}
- name: Release