Skip to content

Commit

Permalink
Fix artifact-provider zip processing and report name generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Dorner committed Feb 15, 2021
1 parent e356ffe commit 89f214d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/input-providers/artifact-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ArtifactProvider implements InputProvider {
}
let reportName = this.name
for (let i = 1; i < match.length; i++) {
reportName = reportName.replace(new RegExp(`$${i}`, 'g'), match[i])
reportName = reportName.replace(new RegExp(`\\$${i}`, 'g'), match[i])
}
return reportName
}
Expand Down Expand Up @@ -76,7 +76,7 @@ export class ArtifactProvider implements InputProvider {
const files: FileContent[] = []
const zip = new Zip(fileName)
for (const entry of zip.getEntries()) {
const file = entry.name
const file = entry.entryName
if (entry.isDirectory) {
core.info(`Skipping ${file}: entry is a directory`)
continue
Expand Down

0 comments on commit 89f214d

Please sign in to comment.