Remove old files
All checks were successful
Generate Release / validate_and_release (push) Successful in 13s
All checks were successful
Generate Release / validate_and_release (push) Successful in 13s
This commit is contained in:
parent
5d826099f2
commit
4fbbf30fbd
@ -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();
|
Loading…
Reference in New Issue
Block a user