logging
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 30s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 30s
Details
This commit is contained in:
parent
1e1686619d
commit
4fe17240a6
|
@ -14,12 +14,15 @@ const submitRollup = async () => {
|
|||
const availableBatchItems = getBatchItems();
|
||||
const batchItems = [];
|
||||
const batchItemsInfo = await fetchBatchItemsInfo();
|
||||
console.log('available batch items', availableBatchItems);
|
||||
for (let i = 0; i < batchItemsInfo.length; i += 1) {
|
||||
const { postId } = batchItemsInfo[i];
|
||||
if (availableBatchItems.includes(postId)) {
|
||||
console.log(`post ${postId} is available`);
|
||||
batchItems.push(postId);
|
||||
} else {
|
||||
// Batch items have to be submitted in the correct order, with no gaps
|
||||
console.log(`post ${postId} is not available`);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue