update
continuous-integration/drone/push Build is passing Details

This commit is contained in:
186526 2023-05-29 01:26:41 +08:00
parent 7b084039e9
commit 212cb0201e
Signed by: 186526
GPG Key ID: 6A344682F6FC0A8F
1 changed files with 7 additions and 9 deletions

View File

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