Added input parameter to the template and documented in the README.

This commit is contained in:
Patrick Lehmann
2021-12-07 20:09:11 +01:00
parent 40856aa731
commit 774ea7970e
3 changed files with 11 additions and 1 deletions

View File

@@ -24,6 +24,12 @@ name: Publish Unit Test Results
on:
workflow_call:
inputs:
report_files:
description: 'Pattern of report files to upload. Can be a comma separated list.'
required: false
default: 'artifacts/**/*.xml'
type: string
jobs:
PublishTestResults:
@@ -44,5 +50,5 @@ jobs:
uses: dorny/test-reporter@v1
with:
name: Unit Test Results
path: artifacts/**/*.xml
path: ${{ inputs.report_files }}
reporter: java-junit