From 38d6fb33a182285559b930de70e1fbc27da1419d Mon Sep 17 00:00:00 2001 From: duanfuxiang Date: Mon, 6 Jan 2025 21:04:08 +0800 Subject: [PATCH] update github release --- .github/scripts/get-changelog.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 .github/scripts/get-changelog.js diff --git a/.github/scripts/get-changelog.js b/.github/scripts/get-changelog.js old mode 100644 new mode 100755 index d3180c6..c72b1f7 --- a/.github/scripts/get-changelog.js +++ b/.github/scripts/get-changelog.js @@ -25,11 +25,17 @@ if (!versionSection) { process.exit(1); } -// Extract content between this version and next version +// Extract and format the changelog entries const lines = versionSection .split('\n') .slice(1) // Remove the version line itself + .filter(line => line.trim().startsWith('- ')) // Only keep bullet points .join('\n') .trim(); +if (!lines) { + console.error('No bullet points found in changelog section'); + process.exit(1); +} + console.log(lines);