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