From 7ca76adee4bcf5db40608cc10df2a6c1d495a22d Mon Sep 17 00:00:00 2001 From: Ivar Nesje Date: Fri, 29 May 2026 14:38:20 +0200 Subject: [PATCH] Improve release notes handling in publish workflow --- .github/workflows/publish-release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 32c3b52175..a2018749cd 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -39,9 +39,11 @@ jobs: - name: Extract release notes id: extract-notes run: | - echo "Release notes look best on GitHub: ${{ github.event.release.html_url }}" > RELEASE_NOTES.md - echo "" >> RELEASE_NOTES.md - echo "${{ github.event.release.body }}" >> RELEASE_NOTES.md + { + echo "Release notes look best on GitHub: ${{ github.event.release.html_url }}" + echo + jq -r '.release.body // ""' "$GITHUB_EVENT_PATH" + } > RELEASE_NOTES.md cat RELEASE_NOTES.md - name: Build run: |