update github release
This commit is contained in:
parent
971746ef6a
commit
38d6fb33a1
8
.github/scripts/get-changelog.js
vendored
Normal file → Executable file
8
.github/scripts/get-changelog.js
vendored
Normal file → Executable file
@ -25,11 +25,17 @@ if (!versionSection) {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract content between this version and next version
|
// Extract and format the changelog entries
|
||||||
const lines = versionSection
|
const lines = versionSection
|
||||||
.split('\n')
|
.split('\n')
|
||||||
.slice(1) // Remove the version line itself
|
.slice(1) // Remove the version line itself
|
||||||
|
.filter(line => line.trim().startsWith('- ')) // Only keep bullet points
|
||||||
.join('\n')
|
.join('\n')
|
||||||
.trim();
|
.trim();
|
||||||
|
|
||||||
|
if (!lines) {
|
||||||
|
console.error('No bullet points found in changelog section');
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
console.log(lines);
|
console.log(lines);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user