Skip to content

Commit 156db6f

Browse files
Perform Maven/Gradle check in the projectBaseDir (#19)
Co-authored-by: Tom <[email protected]>
1 parent 64d3b08 commit 156db6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ if [[ -z "${SONAR_TOKEN}" ]]; then
77
exit 1
88
fi
99

10-
if [[ -f "pom.xml" ]]; then
10+
if [[ -f "${INPUT_PROJECTBASEDIR%/}/pom.xml" ]]; then
1111
echo "Maven project detected. You should run the goal 'org.sonarsource.scanner.maven:sonar' during build rather than using this GitHub Action."
1212
exit 1
1313
fi
1414

15-
if [[ -f "build.gradle" ]]; then
15+
if [[ -f "${INPUT_PROJECTBASEDIR%/}/build.gradle" ]]; then
1616
echo "Gradle project detected. You should use the SonarQube plugin for Gradle during build rather than using this GitHub Action."
1717
exit 1
1818
fi

0 commit comments

Comments
 (0)