mirror of
https://github.com/kitabisa/sonarqube-action.git
synced 2025-11-01 22:04:20 +08:00
🐛 Bug fixed for #2
This commit is contained in:
parent
3d458002e9
commit
07b55c6b20
@ -10,11 +10,7 @@ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -z "${INPUT_PASSWORD}" ]]; then
|
||||
SONAR_PASSWORD="&& true"
|
||||
else
|
||||
SONAR_PASSWORD="${INPUT_PASSWORD}"
|
||||
fi
|
||||
[[ ! -z ${INPUT_PASSWORD} ]] && SONAR_PASSWORD="${INPUT_PASSWORD}" || SONAR_PASSWORD=""
|
||||
|
||||
sonar-scanner \
|
||||
-Dsonar.host.url=${INPUT_HOST} \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user