mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(ci): batch screenshot uploads (#15975)
This commit is contained in:
@@ -94,7 +94,15 @@ class CIScreenshotConnector extends IonicConnector {
|
||||
);
|
||||
}
|
||||
|
||||
await Promise.all(uploads);
|
||||
const uploadBatches = [];
|
||||
|
||||
while (uploads.length > 0) {
|
||||
uploadBatches.push(uploads.splice(0, 10));
|
||||
}
|
||||
|
||||
for (const batch of uploadBatches) {
|
||||
await Promise.all(batch);
|
||||
}
|
||||
|
||||
timespan.finish(`publishing build finished`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user