Compare commits
No commits in common. "main" and "20241102_193002" have entirely different histories.
main
...
20241102_1
@ -6,7 +6,6 @@ on:
|
||||
branches:
|
||||
- auto-*
|
||||
- workflow_update
|
||||
- pis-*
|
||||
|
||||
jobs:
|
||||
validate_and_release:
|
||||
|
482
pis/gw.yaml
482
pis/gw.yaml
File diff suppressed because it is too large
Load Diff
@ -31,17 +31,15 @@ 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`;
|
||||
outputString += ` toc: "gw"\n`;
|
||||
}
|
||||
});
|
||||
|
||||
@ -52,9 +50,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