mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-21 21:09:22 +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'), '/')
|
||||
core.debug(`Matched: ${relativeFile}`)
|
||||
// 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
|
||||
paths.push(".")
|
||||
paths.push('.')
|
||||
} else {
|
||||
paths.push(`${relativeFile}`)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user