Compare commits
No commits in common. "main" and "20240712_103406" have entirely different histories.
main
...
20240712_1
@ -6,7 +6,6 @@ on:
|
||||
branches:
|
||||
- auto-*
|
||||
- workflow_update
|
||||
- pis-*
|
||||
|
||||
jobs:
|
||||
validate_and_release:
|
||||
|
2215
pis/gw.yaml
2215
pis/gw.yaml
File diff suppressed because it is too large
Load Diff
@ -31,17 +31,14 @@ function sortAndMergeYAMLFiles() {
|
||||
return codeA - codeB
|
||||
})
|
||||
|
||||
|
||||
const mergedYaml = yaml.stringify(mergedData);
|
||||
|
||||
// Construct the output string, removing duplicates
|
||||
// Construct the output string
|
||||
let outputString = "pis:\n";
|
||||
const seenCodes = new Set();
|
||||
mergedData.forEach(item => {
|
||||
if (!seenCodes.has(item.code) && item.stops.length > 0) {
|
||||
seenCodes.add(item.code);
|
||||
if (item.stops.length > 0) {
|
||||
outputString += ` - code: "${item.code}"\n`;
|
||||
outputString += ` stops: [${item.stops.map(stop => `${stop}`).join(',')}]\n`;
|
||||
outputString += ` toc: "${item.toc || "gw"}"\n`;
|
||||
}
|
||||
});
|
||||
|
||||
@ -52,9 +49,8 @@ function sortAndMergeYAMLFiles() {
|
||||
console.error("Error writing gw.pis", err)
|
||||
}
|
||||
|
||||
// Remove any files created by dgp2
|
||||
files.forEach(file => {
|
||||
if (file.startsWith('auto-')) {
|
||||
if (file.startsWith('dg_parser')) {
|
||||
fs.unlinkSync(directoryPath + file);
|
||||
console.log(`Deleted file: ${file}`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user