Skip to content

Commit

Permalink
resolving report_file
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Dec 18, 2023
1 parent 9c79f3a commit ff3fedd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ runs:
DIKTAT_ARGS=('--config' '${{ inputs.config }}' '--reporter' '${{ inputs.reporter }}')
if [[ '${{ inputs.reporter }}' == 'sarif' ]]
then
DIKTAT_ARGS+=('--output' '${GITHUB_WORKSPACE}/report.sarif')
report_file=${GITHUB_WORKSPACE}/report.sarif
DIKTAT_ARGS+=('--output' report_file)
elif [[ '${{ inputs.reporter }}' == 'checkstyle' ]]
then
DIKTAT_ARGS+=('--output' '${GITHUB_WORKSPACE}/checkstyle-report.xml')
report_file=${GITHUB_WORKSPACE}/checkstyle-report.xml
DIKTAT_ARGS+=('--output' report_file)
else
echo "`reporter` should be set to `sarif` or `checkstyle`"
exit 1
Expand Down

0 comments on commit ff3fedd

Please sign in to comment.