Handle duplicate release asset links

This commit is contained in:
2026-09-04 18:58:51 -07:00
parent 32677c9fb2
commit 5f4c47a07c

View File

@@ -142,8 +142,11 @@ function createGitLabRelease(tag, releaseLinks) {
url: link.url, url: link.url,
link_type: link.link_type link_type: link.link_type
}).catch(e => { }).catch(e => {
if (!e.message.includes('HTTP 409')) throw e; if (e.message.includes('already been taken') || e.message.includes('HTTP 409') || e.message.includes('HTTP 400')) {
console.log(`[CI Sync] Link ${link.name} already attached. Skipping.`); console.log(`[CI Sync] Asset link '${link.name}' is already attached. Skipping.`);
return Promise.resolve();
}
throw e;
}); });
}); });
} }