mirror of
https://github.com/kitabisa/sonarqube-action.git
synced 2025-11-01 22:04:20 +08:00
fix code-style & reference WORKSPACE dir for file detection
This commit is contained in:
parent
9b7b1d0336
commit
c94954550f
@ -14,8 +14,7 @@ REPOSITORY_NAME=$(basename "${GITHUB_REPOSITORY}")
|
||||
|
||||
[[ ! -z ${INPUT_PASSWORD} ]] && SONAR_PASSWORD="${INPUT_PASSWORD}" || SONAR_PASSWORD=""
|
||||
|
||||
if [! -f "./sonar-project.properties"]
|
||||
then
|
||||
if [! -f "${GITHUB_WORKSPACE}/sonar-project.properties"]; then
|
||||
[[ -z ${INPUT_PROJECTKEY} ]] && SONAR_PROJECTKEY="${REPOSITORY_NAME}" || SONAR_PROJECTKEY="${INPUT_PROJECTKEY}"
|
||||
[[ -z ${INPUT_PROJECTNAME} ]] && SONAR_PROJECTNAME="${REPOSITORY_NAME}" || SONAR_PROJECTNAME="${INPUT_PROJECTNAME}"
|
||||
[[ -z ${INPUT_PROJECTVERSION} ]] && SONAR_PROJECTVERSION="" || SONAR_PROJECTVERSION="${INPUT_PROJECTVERSION}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user