Compare commits
34 Commits
20241102_1
...
main
Author | SHA1 | Date | |
---|---|---|---|
02f05487f9 | |||
337029dea8 | |||
dea96ef8a2 | |||
8b6c642883 | |||
aa81409944 | |||
dd3fd76dbc | |||
0abc76cd5a | |||
|
82cc604817 | ||
443e754659 | |||
04e50dd9ed | |||
236d357663 | |||
a361f89275 | |||
4f683455f6 | |||
5a93832f81 | |||
c7f65df091 | |||
a9cb0897ef | |||
c1d9452857 | |||
fb13501326 | |||
19a90adccb | |||
fbed314359 | |||
7022d23709 | |||
091e136ac6 | |||
1ef727df52 | |||
|
51e7b533aa | ||
cbffbc76be | |||
dce6f40a12 | |||
80762ad3c9 | |||
173042d741 | |||
fa74bc5fec | |||
fbfb97f71f | |||
5e0de0065b | |||
17e0a70de5 | |||
9a2d739189 | |||
3c752caeb9 |
@ -6,6 +6,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- auto-*
|
- auto-*
|
||||||
- workflow_update
|
- workflow_update
|
||||||
|
- pis-*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate_and_release:
|
validate_and_release:
|
||||||
|
494
pis/gw.yaml
494
pis/gw.yaml
File diff suppressed because it is too large
Load Diff
@ -31,15 +31,17 @@ 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 (item.stops.length > 0) {
|
if (!seenCodes.has(item.code) && 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: "gw"\n`;
|
outputString += ` toc: "${item.toc || "gw"}"\n`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -50,8 +52,9 @@ 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('dg_parser')) {
|
if (file.startsWith('auto-')) {
|
||||||
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