Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Mar 29, 2022
1 parent 964e912 commit 1cd3077
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ export async function run(): Promise<void> {
.map((p: string) => normalizeSeparators(p.replace(topLevelDir, '')))
.filter((p: string) => p !== '')
}

let pathsOutput = paths.join(separator)


if (escapePaths) {
pathsOutput = escapeStringRegexp(pathsOutput)
paths = paths.map((p: string) => escapeStringRegexp(pathsOutput))
}

const pathsOutput = paths.join(separator)
core.setOutput('paths', pathsOutput)

if (pathsOutput) {
Expand Down

0 comments on commit 1cd3077

Please sign in to comment.