SCSCANGHA-3 Update the condition to detect "build.gradle.kts" files (#71)

This commit is contained in:
Marharyta 2024-05-08 10:35:05 +02:00 committed by GitHub
commit 19888635fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ if [[ -f "${INPUT_PROJECTBASEDIR%/}/pom.xml" ]]; then
exit 1 exit 1
fi fi
if [[ -f "${INPUT_PROJECTBASEDIR%/}/build.gradle" ]]; then if [[ -f "${INPUT_PROJECTBASEDIR%/}/build.gradle" || -f "${INPUT_PROJECTBASEDIR%/}/build.gradle.kts" ]]; then
echo "Gradle project detected. You should use the SonarQube plugin for Gradle during build rather than using this GitHub Action." echo "Gradle project detected. You should use the SonarQube plugin for Gradle during build rather than using this GitHub Action."
exit 1 exit 1
fi fi