mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 03:29:06 +08:00
Fix linting for changes
This commit is contained in:
parent
593bc7061c
commit
da6701aea9
4
packages/cache/src/internal/cacheUtils.ts
vendored
4
packages/cache/src/internal/cacheUtils.ts
vendored
@ -52,9 +52,9 @@ export async function resolvePaths(patterns: string[]): Promise<string[]> {
|
|||||||
.replace(new RegExp(`\\${path.sep}`, 'g'), '/')
|
.replace(new RegExp(`\\${path.sep}`, 'g'), '/')
|
||||||
core.debug(`Matched: ${relativeFile}`)
|
core.debug(`Matched: ${relativeFile}`)
|
||||||
// Paths are made relative so the tar entries are all relative to the root of the workspace.
|
// Paths are made relative so the tar entries are all relative to the root of the workspace.
|
||||||
if (relativeFile === "") {
|
if (relativeFile === '') {
|
||||||
// path.relative returns empty string if workspace and file are equal
|
// path.relative returns empty string if workspace and file are equal
|
||||||
paths.push(".")
|
paths.push('.')
|
||||||
} else {
|
} else {
|
||||||
paths.push(`${relativeFile}`)
|
paths.push(`${relativeFile}`)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user