Fix windows cache path

This commit is contained in:
Aiqiao Yan
2020-12-10 10:59:04 -05:00
parent 8d11ee5a8c
commit 42b3ff04b2
4 changed files with 10 additions and 3 deletions
+3 -1
View File
@@ -47,7 +47,9 @@ export async function resolvePaths(patterns: string[]): Promise<string[]> {
})
for await (const file of globber.globGenerator()) {
const relativeFile = path.relative(workspace, file)
const relativeFile = path
.relative(workspace, file)
.replace(new RegExp(`\\${path.sep}`, 'g'), '/')
core.debug(`Matched: ${relativeFile}`)
// Paths are made relative so the tar entries are all relative to the root of the workspace.
paths.push(`${relativeFile}`)