Remove old files
All checks were successful
Generate Release / validate_and_release (push) Successful in 13s

This commit is contained in:
Fred Boniface 2024-03-08 13:14:22 +00:00
parent 5d826099f2
commit 4fbbf30fbd

View File

@ -37,7 +37,16 @@ function sortAndMergeYAMLFiles() {
let outputString = "pis:\n";
mergedData.forEach(item => {
outputString += ` - code: "${item.code}"\n`;
outputString += ` stops: [${item.stops.map(stop => `"${stop}"`).join(', ')}]\n`;
outputString += ` stops: [${item.stops.map(stop => `${stop}`).join(',')}]\n`;
});
fs.writeFileSync('./pis/gw.yaml', outputString);
files.forEach(file => {
if (file.startsWith('dg_parser')) {
fs.unlinkSync(directoryPath + file);
console.log(`Deleted file: ${file}`);
}
});
console.log(outputString)
@ -46,9 +55,5 @@ function sortAndMergeYAMLFiles() {
}
}
function yamlWriteInNiceFormat(yaml) {
output = "pis:\n"
}
sortAndMergeYAMLFiles();