mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 03:19:08 +08:00
use existing function
This commit is contained in:
parent
83731e6528
commit
1e326de474
@ -97,9 +97,12 @@ export async function streamExtractExternal(
|
||||
const fullPath = path.normalize(path.join(directory, entry.path))
|
||||
core.debug(`Extracting artifact entry: ${fullPath}`)
|
||||
if (entry.type === 'Directory') {
|
||||
promises.push(fs.mkdir(fullPath, {recursive: true}).then(() => {}))
|
||||
promises.push(resolveOrCreateDirectory(fullPath).then(() => {}))
|
||||
entry.autodrain()
|
||||
} else {
|
||||
promises.push(
|
||||
resolveOrCreateDirectory(path.dirname(fullPath)).then(() => {})
|
||||
)
|
||||
const writeStream = createWriteStream(fullPath)
|
||||
promises.push(
|
||||
new Promise((resolve, reject) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user