Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Apr 10, 2024
1 parent 8286008 commit 8ff8268
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,14 @@ runs:
run: |
# Run SonarCloud for ${{ inputs.java-cache }}
# if [ "${{ inputs.java-cache }}" == "maven" ]; then
# SONAR_CMD="mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar"
# elif [ "${{ inputs.java-cache }}" == "gradle" ]; then
# SONAR_CMD="./gradlew build sonarqube --info"
# else
# echo "ERROR: inputs.java-cache = ${{ inputs.java-cache }}"
# exit 1
# fi
# "${SONAR_CMD}" -Dsonar.host.url=https://sonarcloud.io ${{ inputs.sonar_args }}
mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.host.url=https://sonarcloud.io ${{ inputs.sonar_args }}
if [ "${{ inputs.java-cache }}" == "maven" ]; then
mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.host.url=https://sonarcloud.io ${{ inputs.sonar_args }}
elif [ "${{ inputs.java-cache }}" == "gradle" ]; then
gradlew build sonarqube --info -Dsonar.host.url=https://sonarcloud.io ${{ inputs.sonar_args }}
else
echo "ERROR: inputs.java-cache = ${{ inputs.java-cache }}"
exit 1
fi
### Cleanup

Expand Down

0 comments on commit 8ff8268

Please sign in to comment.