update
This commit is contained in:
parent
926b5964a2
commit
7a4a9b4c27
|
@ -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, '-')}`;
|
||||||
|
|
Loading…
Reference in New Issue