Compare commits

..

No commits in common. "main" and "20241031_233616" have entirely different histories.

3 changed files with 287 additions and 267 deletions

View File

@ -6,7 +6,6 @@ on:
branches:
- auto-*
- workflow_update
- pis-*
jobs:
validate_and_release:

File diff suppressed because it is too large Load Diff

View File

@ -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}`);
}