mirror of
https://github.com/sonarsource/sonarcloud-github-action.git
synced 2026-06-06 04:47:08 +00:00
SCSCANGHA-14 Enable debug logging when GitHub Actions debug logging is enabled (#43)
This commit is contained in:
parent
49689c4407
commit
1373cf75e2
1 changed files with 7 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue