From 15dc458751ce1bb04ac5336664e25040e945e1c1 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Thu, 3 Apr 2025 12:16:47 -0400 Subject: [PATCH] chore: export release notes to path and then parse them --- .github/workflows/release-production.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index 6f3f8ba74..842780d9f 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -31,6 +31,8 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '22.x' + - run: | + echo "${{ steps.release-info.outputs.body }}" >> release-notes.txt - run: npm install html-escaper@2 xml2js - name: Update Plugin Changelog uses: actions/github-script@v7 @@ -38,7 +40,8 @@ jobs: script: | const fs = require('fs'); const { escape } = require('html-escaper'); - const releaseNotes = escape(`${{ steps.release-info.outputs.body }}`); + + const releaseNotes = fs.readFileSync('release-notes.txt', 'utf8'); if (!releaseNotes) { console.error('No release notes found');