1
0
Fork 0

Fix linting for changes

pull/1132/head
Lovepreet Singh 2022-07-13 13:37:49 +00:00 committed by GitHub
parent 593bc7061c
commit da6701aea9
1 changed files with 2 additions and 2 deletions

View File

@ -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}`)
}