mirror of https://github.com/actions/toolkit
Fix linting for changes
parent
593bc7061c
commit
da6701aea9
|
@ -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…
Reference in New Issue