mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-21 07:09:08 +08:00
prettier
This commit is contained in:
parent
9dea373bba
commit
31c555afda
@ -97,10 +97,12 @@ export async function streamExtractExternal(
|
||||
const fullPath = path.normalize(path.join(directory, entry.path))
|
||||
core.debug(`Extracting artifact entry: ${fullPath}`)
|
||||
const writeStream = createWriteStream(fullPath)
|
||||
promises.push(new Promise((resolve, reject) => {
|
||||
writeStream.on('finish', () => resolve())
|
||||
writeStream.on('error', reject)
|
||||
}))
|
||||
promises.push(
|
||||
new Promise((resolve, reject) => {
|
||||
writeStream.on('finish', () => resolve())
|
||||
writeStream.on('error', reject)
|
||||
})
|
||||
)
|
||||
entry.pipe(writeStream)
|
||||
})
|
||||
.on('end', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user