1
0
Fork 0
pull/1666/head
bethanyj28 2024-02-22 20:31:49 -05:00
parent 9dea373bba
commit 31c555afda
1 changed files with 6 additions and 4 deletions

View File

@ -97,10 +97,12 @@ export async function streamExtractExternal(
const fullPath = path.normalize(path.join(directory, entry.path)) const fullPath = path.normalize(path.join(directory, entry.path))
core.debug(`Extracting artifact entry: ${fullPath}`) core.debug(`Extracting artifact entry: ${fullPath}`)
const writeStream = createWriteStream(fullPath) const writeStream = createWriteStream(fullPath)
promises.push(new Promise((resolve, reject) => { promises.push(
new Promise((resolve, reject) => {
writeStream.on('finish', () => resolve()) writeStream.on('finish', () => resolve())
writeStream.on('error', reject) writeStream.on('error', reject)
})) })
)
entry.pipe(writeStream) entry.pipe(writeStream)
}) })
.on('end', () => { .on('end', () => {