Skip to content

Commit ff3fedd

Browse files
committed
resolving report_file
1 parent 9c79f3a commit ff3fedd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ runs:
100100
DIKTAT_ARGS=('--config' '${{ inputs.config }}' '--reporter' '${{ inputs.reporter }}')
101101
if [[ '${{ inputs.reporter }}' == 'sarif' ]]
102102
then
103-
DIKTAT_ARGS+=('--output' '${GITHUB_WORKSPACE}/report.sarif')
103+
report_file=${GITHUB_WORKSPACE}/report.sarif
104+
DIKTAT_ARGS+=('--output' report_file)
104105
elif [[ '${{ inputs.reporter }}' == 'checkstyle' ]]
105106
then
106-
DIKTAT_ARGS+=('--output' '${GITHUB_WORKSPACE}/checkstyle-report.xml')
107+
report_file=${GITHUB_WORKSPACE}/checkstyle-report.xml
108+
DIKTAT_ARGS+=('--output' report_file)
107109
else
108110
echo "`reporter` should be set to `sarif` or `checkstyle`"
109111
exit 1

0 commit comments

Comments
 (0)