diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b225bb2..6cb1186 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,7 @@ jobs: --snippets=.snippets \ --dry-run > latest-entry.json jq -r ".content" latest-entry.json > latest_description.txt + sed -i '/^$/d' latest_description.txt echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV echo 'LATEST_DESCRIPTION<<"EOT"' >> $GITHUB_OUTPUT cat latest_description.txt >> $GITHUB_OUTPUT diff --git a/.github/workflows/test-release.yaml b/.github/workflows/test-release.yaml index 8b06d8f..8a581bf 100644 --- a/.github/workflows/test-release.yaml +++ b/.github/workflows/test-release.yaml @@ -36,6 +36,7 @@ jobs: --snippets=.snippets \ --dry-run > latest-entry.json jq -r ".content" latest-entry.json > latest_description.txt + sed -i '/^$/d' latest_description.txt echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV echo 'LATEST_DESCRIPTION<<"EOT"' >> $GITHUB_OUTPUT cat latest_description.txt >> $GITHUB_OUTPUT