mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-20 17:15:39 -05:00
Handle duplicate release asset links
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user