mirror of https://github.com/actions/toolkit
use resolve instead of normalize
parent
90894a8853
commit
8a1800c5da
|
@ -104,7 +104,7 @@ export async function streamExtractExternal(
|
||||||
new stream.Transform({
|
new stream.Transform({
|
||||||
objectMode: true,
|
objectMode: true,
|
||||||
transform: async (entry, _, callback) => {
|
transform: async (entry, _, callback) => {
|
||||||
const fullPath = path.normalize(path.join(directory, entry.path))
|
const fullPath = path.resolve(path.join(directory, entry.path))
|
||||||
if (!directory.endsWith(path.sep)) {
|
if (!directory.endsWith(path.sep)) {
|
||||||
directory += path.sep
|
directory += path.sep
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue