mirror of https://github.com/actions/toolkit
prettier
parent
d3301c9bc2
commit
8d03fb4787
|
@ -94,7 +94,9 @@ export async function streamExtractExternal(
|
|||
})
|
||||
.pipe(unzip.Parse())
|
||||
.on('entry', (entry: unzip.Entry) => {
|
||||
const entryPath = path.normalize(entry.path).replace(/^(\.\.(\/|\\|$))+/, '')
|
||||
const entryPath = path
|
||||
.normalize(entry.path)
|
||||
.replace(/^(\.\.(\/|\\|$))+/, '')
|
||||
const fullPath = path.join(directory, entryPath)
|
||||
core.debug(`Extracting artifact entry: ${fullPath}`)
|
||||
if (entry.type === 'Directory') {
|
||||
|
|
Loading…
Reference in New Issue