This commit is contained in:
f 2025-01-06 01:04:45 +03:00
parent 926b5964a2
commit 7a4a9b4c27
1 changed files with 3 additions and 2 deletions

View File

@ -209,8 +209,9 @@ jobs:
// Prepare CSV content // Prepare CSV content
console.log('Preparing CSV content...'); console.log('Preparing CSV content...');
const csvContent = Buffer.from(csvFile.content, 'base64').toString('utf-8') + let csvContent = Buffer.from(csvFile.content, 'base64').toString('utf-8');
`\n"${actName.replace(/"/g, '""')}","${newPrompt.replace(/"/g, '""')}"`; if (!csvContent.endsWith('\n')) csvContent += '\n';
csvContent += `"${actName.replace(/"/g, '""')}","${newPrompt.replace(/"/g, '""')}"`;
// Create new branch // Create new branch
const branchName = `prompt/${actName.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`; const branchName = `prompt/${actName.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`;