mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 01:49:07 +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) {
|
||||
core.info(`hello ${task.name}`)
|
||||
core.debug(`adding file to upload queue ${task}`)
|
||||
callback()
|
||||
}, 1)
|
||||
|
||||
@ -126,9 +126,6 @@ export async function createZipUploadStream(
|
||||
|
||||
core.debug(`Starting the finalizing of all entries`)
|
||||
|
||||
for (const item of fileUploadQueue) {
|
||||
core.debug(`Starting the finalizing ${item}`)
|
||||
}
|
||||
fileUploadQueue.drain(() => {
|
||||
core.debug('all items have been processed')
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user