mirror of https://github.com/actions/toolkit
Merge pull request #1670 from actions/bethanyj28/fix-callback
Ensure callback is only called oncepull/1671/head
commit
5a7faf0eb5
|
@ -127,12 +127,7 @@ export async function streamExtractExternal(
|
|||
} else {
|
||||
if (!createdDirectories.has(path.dirname(fullPath))) {
|
||||
createdDirectories.add(path.dirname(fullPath))
|
||||
await resolveOrCreateDirectory(path.dirname(fullPath)).then(
|
||||
() => {
|
||||
entry.autodrain()
|
||||
callback()
|
||||
}
|
||||
)
|
||||
await resolveOrCreateDirectory(path.dirname(fullPath))
|
||||
}
|
||||
|
||||
const writeStream = createWriteStream(fullPath)
|
||||
|
|
Loading…
Reference in New Issue