fix(release fixes): more fixes

This commit is contained in:
2025-07-12 15:52:58 -05:00
parent 6779d1c346
commit 6fc69fc6bc
2 changed files with 8 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ if (!version) {
// Load build number from BUILD_NUMBER file
let buildNumber = '0';
try {
rawBuild = (await fs.readFile('../BUILD_NUMBER', 'utf8')).trim();
rawBuild = (await fs.readFile('BUILD_NUMBER', 'utf8')).trim();
console.log("Raw build" ,rawBuild)
if (rawBuild) {
const [numPart, namePart] = rawBuild.split('-');
@@ -73,7 +73,7 @@ const changelog = await fs.readFile('CHANGELOG.md', 'utf8');
const regex = new RegExp(`## \\[${version}\\][\\s\\S]*?(?=## \\[|$)`, 'm');
const releaseNotes = changelog.match(regex)?.[0] || changelog;
console.log(`Release notes for v${version}:\n`, releaseNotes);
console.log(`Release notes for v${version} saved`);
// 3) Create Gitea release
const createRelease = async () => {