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 {
|
} else {
|
||||||
if (!createdDirectories.has(path.dirname(fullPath))) {
|
if (!createdDirectories.has(path.dirname(fullPath))) {
|
||||||
createdDirectories.add(path.dirname(fullPath))
|
createdDirectories.add(path.dirname(fullPath))
|
||||||
await resolveOrCreateDirectory(path.dirname(fullPath)).then(
|
await resolveOrCreateDirectory(path.dirname(fullPath))
|
||||||
() => {
|
|
||||||
entry.autodrain()
|
|
||||||
callback()
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const writeStream = createWriteStream(fullPath)
|
const writeStream = createWriteStream(fullPath)
|
||||||
|
|
Loading…
Reference in New Issue