From c94954550ffcc51f1817e3359cb865a07cf13a71 Mon Sep 17 00:00:00 2001 From: Alexander Jank Date: Fri, 18 Dec 2020 08:48:17 +0000 Subject: [PATCH] fix code-style & reference WORKSPACE dir for file detection --- entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 177a65c..1611a2a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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}"