update
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7b084039e9
commit
212cb0201e
16
src/index.ts
16
src/index.ts
|
@ -83,7 +83,6 @@ const main = async () => {
|
|||
})
|
||||
)).flat(Infinity))].filter(Boolean) as any).sort((a: number, b: number) => a - b);
|
||||
|
||||
console.log(JSON.stringify(members), JSON.stringify(await bgpq4(asSetName)));
|
||||
if (JSON.stringify(members) === JSON.stringify(await bgpq4(asSetName))) {
|
||||
console.log(`[INFO] AS-SET <${asSetName}> is not changed.`);
|
||||
isChanged = false;
|
||||
|
@ -116,13 +115,12 @@ const main = async () => {
|
|||
asSets.map(
|
||||
async (k) => {
|
||||
if (!k.isChanged) return "";
|
||||
return `
|
||||
as-set: ${k["AS-SET"]}
|
||||
${k["MNT-BY"].map((k) => `mnt-by: ${k}`).join("\n")}
|
||||
${k["TECH-C"].map((k) => `tech-c: ${k}`).join("\n")}
|
||||
${k["ADMIN-C"].map((k) => `admin-c: ${k}`).join("\n")}
|
||||
${k.remarks.map((k) => `remarks: ${k}`).join("\n")}
|
||||
${(
|
||||
return `as-set: ${k["AS-SET"]}
|
||||
${k["MNT-BY"].map((k) => `mnt-by: ${k}`).join("\n")}
|
||||
${k["TECH-C"].map((k) => `tech-c: ${k}`).join("\n")}
|
||||
${k["ADMIN-C"].map((k) => `admin-c: ${k}`).join("\n")}
|
||||
${k.remarks.map((k) => `remarks: ${k}`).join("\n")}
|
||||
${(
|
||||
await Promise.all(
|
||||
k.members.map(
|
||||
async (k) =>
|
||||
|
@ -130,7 +128,7 @@ const main = async () => {
|
|||
)
|
||||
)
|
||||
).join("\n")}${k.include.map((k) => `\nmembers: ${k}`)}
|
||||
source: RIPE\npassword: ${env["RIPE_PASSWORD"]}\n
|
||||
source: RIPE\npassword: ${env["RIPE_PASSWORD"]}\n
|
||||
`
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue