Skip to content

Commit cc137d2

Browse files
committed
5.4.6
1 parent 42e3e23 commit cc137d2

File tree

5 files changed

+21
-7
lines changed

5 files changed

+21
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The more advanced settings are documented in the [wiki](https://github.com/danie
1414
dotnet-quality: 'ga'
1515

1616
- name: ReportGenerator
17-
uses: danielpalme/[email protected].5
17+
uses: danielpalme/[email protected].6
1818
with:
1919
reports: 'coverage.xml' # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported.
2020
targetdir: 'coveragereport' # REQUIRED # The directory where the generated report should be saved.

dist/index.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const core = __importStar(__nccwpck_require__(7484));
5353
const exec = __importStar(__nccwpck_require__(5236));
5454
const fs = __importStar(__nccwpck_require__(9896));
5555
const path = __importStar(__nccwpck_require__(6928));
56-
const VERSION = '5.4.5';
56+
const VERSION = '5.4.6';
5757
function run() {
5858
return __awaiter(this, void 0, void 0, function* () {
5959
try {
@@ -111,6 +111,7 @@ function run() {
111111
let targetdir = (core.getInput('targetdir') || '');
112112
let historydir = (core.getInput('historydir') || '');
113113
let sourcedirs = (core.getInput('sourcedirs') || '');
114+
let reports = (core.getInput('reports') || '');
114115
if (workingdir.length > 0) {
115116
if (targetdir.length > 0 && !path.isAbsolute(targetdir)) {
116117
targetdir = path.join(workingdir, targetdir);
@@ -131,9 +132,22 @@ function run() {
131132
});
132133
sourcedirs = updatedSourcedirs;
133134
}
135+
if (reports.length > 0) {
136+
let updatedReports = '';
137+
reports.split(/[,;]/).forEach(report => {
138+
if (!path.isAbsolute(report)) {
139+
report = path.join(workingdir, report);
140+
}
141+
if (updatedReports.length > 0) {
142+
updatedReports += ';';
143+
}
144+
updatedReports += report;
145+
});
146+
reports = updatedReports;
147+
}
134148
}
135149
const args = [
136-
'-reports:' + (core.getInput('reports') || ''),
150+
'-reports:' + reports,
137151
'-targetdir:' + targetdir,
138152
'-reporttypes:' + (core.getInput('reporttypes') || ''),
139153
'-sourcedirs:' + sourcedirs,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ReportGenerator",
3-
"version": "5.4.5",
3+
"version": "5.4.6",
44
"description": "",
55
"main": "lib/reportgenerator.js",
66
"scripts": {

src/reportgenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as exec from '@actions/exec';
33
import * as fs from 'fs';
44
import * as path from 'path';
55

6-
const VERSION = '5.4.5';
6+
const VERSION = '5.4.6';
77

88
async function run() {
99
try {

0 commit comments

Comments
 (0)