SCSCANGHA-14 Enable debug logging when GitHub Actions debug logging is enabled (#43)

This commit is contained in:
Ari Becker 2024-05-21 14:50:39 +03:00 committed by GitHub
commit 1373cf75e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,5 +20,11 @@ fi
if [[ -z "${SONARCLOUD_URL}" ]]; then
SONARCLOUD_URL="https://sonarcloud.io"
fi
debug_flag=''
if [[ "$RUNNER_DEBUG" == '1' ]]; then
debug_flag=' --debug '
fi
unset JAVA_HOME
sonar-scanner -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}
sonar-scanner $debug_flag -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}