mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 03:29:06 +08:00
adding asnyc handler back
This commit is contained in:
parent
4778aebf5b
commit
23039a4345
@ -84,7 +84,7 @@ export async function createZipUploadStream(
|
|||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
const fileUploadQueue = async.queue(function (task, callback) {
|
const fileUploadQueue = async.queue(function (task, callback) {
|
||||||
core.info(`hello ${task.name}`)
|
core.debug(`adding file to upload queue ${task}`)
|
||||||
callback()
|
callback()
|
||||||
}, 1)
|
}, 1)
|
||||||
|
|
||||||
@ -126,9 +126,6 @@ export async function createZipUploadStream(
|
|||||||
|
|
||||||
core.debug(`Starting the finalizing of all entries`)
|
core.debug(`Starting the finalizing of all entries`)
|
||||||
|
|
||||||
for (const item of fileUploadQueue) {
|
|
||||||
core.debug(`Starting the finalizing ${item}`)
|
|
||||||
}
|
|
||||||
fileUploadQueue.drain(() => {
|
fileUploadQueue.drain(() => {
|
||||||
core.debug('all items have been processed')
|
core.debug('all items have been processed')
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user