From e3f751240a97ffdff7834a1bd92d7fa652607e1f Mon Sep 17 00:00:00 2001 From: DevContainer User Date: Fri, 27 Feb 2026 02:29:54 +0000 Subject: [PATCH] fix: use expanding heredoc for release notes to avoid sed failure The multi-line COMMITS variable broke sed substitution due to embedded newlines. Switch to an expanding heredoc that interpolates variables directly, removing the fragile sed placeholder replacement. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release-unified.yaml | 29 +++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release-unified.yaml b/.github/workflows/release-unified.yaml index b6d7cab..12be86d 100644 --- a/.github/workflows/release-unified.yaml +++ b/.github/workflows/release-unified.yaml @@ -156,8 +156,10 @@ jobs: - name: Create GitHub Release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VERSION: ${{ steps.version.outputs.version }} + TAG: ${{ steps.version.outputs.tag }} + IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.tag }} run: | - # Build release notes PREV_TAG=$(git describe --tags --abbrev=0 HEAD~1 2>/dev/null || echo "") if [ -z "$PREV_TAG" ]; then COMMITS=$(git log --pretty=format:"- %s (%h)" HEAD) @@ -165,29 +167,26 @@ jobs: COMMITS=$(git log --pretty=format:"- %s (%h)" "${PREV_TAG}..HEAD") fi - cat > release-notes.md <<'NOTESEOF' - ## Release RELEASE_VERSION + cat > release-notes.md <