Skip to content

Commit

Permalink
chore: change distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
elersong committed Jul 15, 2024
1 parent d05d214 commit 1bf125f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
id: setup-java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
distribution: 'adopt'
java-version: '17'

- name: Cache SonarCloud packages
Expand All @@ -43,13 +43,6 @@ jobs:
unzip sonar-scanner.zip -d ~/.sonar/
mv ~/.sonar/sonar-scanner-4.6.2.2472-linux ~/.sonar/scanner
~/.sonar/scanner/bin/sonar-scanner --version
- name: Ensure Java 17 is used
run: |
echo "JAVA_HOME: ${{ steps.setup-java.outputs.java-home }}"
export JAVA_HOME=${{ steps.setup-java.outputs.java-home }}
export PATH=${JAVA_HOME}/bin:${PATH}
java -version
- name: SonarCloud Scan
env:
Expand Down

0 comments on commit 1bf125f

Please sign in to comment.