Skip to content

Commit

Permalink
Release 4.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpalme committed Aug 2, 2020
1 parent 5c1e1a8 commit 9cfcbab
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
dotnet-version: 3.1.302

- name: ReportGenerator
uses: danielpalme/ReportGenerator-GitHub-Action@4.6.3
uses: danielpalme/ReportGenerator-GitHub-Action@4.6.4
with:
reports: 'coverage.xml' # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported.
targetdir: 'coveragereport' # REQUIRED # The directory where the generated report should be saved.
Expand All @@ -25,4 +25,5 @@
verbosity: 'Info' # The verbosity level of the log messages. Values: Verbose, Info, Warning, Error, Off
title: '' # Optional title.
tag: '${{ github.run_number }}_${{ github.run_id }}' # Optional tag or build version.
customSettings: '' # Optional custom settings (separated by semicolon). See: https://github.com/danielpalme/ReportGenerator/wiki/Settings.
```
8 changes: 7 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(__webpack_require__(470));
const exec = __importStar(__webpack_require__(986));
const fs = __importStar(__webpack_require__(747));
const VERSION = '4.6.3';
const VERSION = '4.6.4';
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
Expand Down Expand Up @@ -1039,6 +1039,12 @@ function run() {
'-title:' + (core.getInput('title') || ''),
'-tag:' + (core.getInput('tag') || '')
];
const customSettings = (core.getInput('customSettings') || '');
if (customSettings.length > 0) {
customSettings.split(';').forEach(setting => {
args.push(setting.trim());
});
}
resultCode = yield exec.exec('reportgeneratortool/reportgenerator', args, {
listeners: {
stdout: (data) => {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ReportGenerator",
"version": "4.6.3",
"version": "4.6.4",
"description": "",
"main": "lib/reportgenerator.js",
"scripts": {
Expand Down
10 changes: 9 additions & 1 deletion src/reportgenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as fs from 'fs';

const VERSION = '4.6.3';
const VERSION = '4.6.4';

async function run() {
try {
Expand Down Expand Up @@ -85,6 +85,14 @@ async function run() {
'-tag:' + (core.getInput('tag') || '')
];

const customSettings = (core.getInput('customSettings') || '');

if (customSettings.length > 0) {
customSettings.split(';').forEach(setting => {
args.push(setting.trim());
});
}

resultCode = await exec.exec(
'reportgeneratortool/reportgenerator',
args,
Expand Down

0 comments on commit 9cfcbab

Please sign in to comment.