diff --git a/README.md b/README.md index d5f5c07..d639b95 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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. ``` \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index c9dc6df..fb8cda3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 { @@ -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) => { diff --git a/package-lock.json b/package-lock.json index 6b22ded..2d9056e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "reportgenerator", - "version": "4.6.3", + "version": "4.6.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c59c6c7..6d51d7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ReportGenerator", - "version": "4.6.3", + "version": "4.6.4", "description": "", "main": "lib/reportgenerator.js", "scripts": { diff --git a/src/reportgenerator.ts b/src/reportgenerator.ts index 6b43c01..4ec2172 100644 --- a/src/reportgenerator.ts +++ b/src/reportgenerator.ts @@ -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 { @@ -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,