mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
Fix artifact-provider zip processing and report name generation
This commit is contained in:
parent
e356ffe9d0
commit
89f214d9f3
3 changed files with 8 additions and 9 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue