mirror of
https://github.com/kitabisa/sonarqube-action.git
synced 2025-11-02 06:14:19 +08:00
fix(entrypoint): use bash condition correctly
This commit is contained in:
parent
c94954550f
commit
532659cc88
@ -14,7 +14,7 @@ REPOSITORY_NAME=$(basename "${GITHUB_REPOSITORY}")
|
||||
|
||||
[[ ! -z ${INPUT_PASSWORD} ]] && SONAR_PASSWORD="${INPUT_PASSWORD}" || SONAR_PASSWORD=""
|
||||
|
||||
if [! -f "${GITHUB_WORKSPACE}/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