mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-21 23:19:09 +08:00
Merge pull request #1670 from actions/bethanyj28/fix-callback
Ensure callback is only called once
This commit is contained in:
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…
x
Reference in New Issue
Block a user