1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

[Ci skip] Fixed sonarcloud workflow

This commit is contained in:
TheBusyBiscuit 2021-07-06 12:55:15 +02:00 committed by GitHub
parent 0fdd6edb00
commit 6971e4225c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,13 +9,11 @@ jobs:
name: SonarCloud Scanner name: SonarCloud Scanner
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
## Only run the sonarcloud scanner if a token is present
if: ${{ env.SONAR_TOKEN != 0 }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
@ -44,3 +42,4 @@ jobs:
- name: SonarCloud analysis - name: SonarCloud analysis
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
if: ${{ env.SONAR_TOKEN != 0 }}