From ff3fedd600793a3a40853fecd577feb7e847f204 Mon Sep 17 00:00:00 2001 From: Nariman Abdullin Date: Mon, 18 Dec 2023 13:12:55 +0300 Subject: [PATCH] resolving report_file --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index fd153a9..e540457 100644 --- a/action.yml +++ b/action.yml @@ -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