logging
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 30s Details

This commit is contained in:
Ladd Hoffman 2024-05-04 19:57:11 -05:00
parent 1e1686619d
commit 4fe17240a6
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
}