mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
[Ci skip] Fixed sonarcloud workflow
This commit is contained in:
parent
0fdd6edb00
commit
6971e4225c
5
.github/workflows/sonarcloud.yml
vendored
5
.github/workflows/sonarcloud.yml
vendored
@ -9,13 +9,11 @@ jobs:
|
||||
|
||||
name: SonarCloud Scanner
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
||||
## Only run the sonarcloud scanner if a token is present
|
||||
if: ${{ env.SONAR_TOKEN != 0 }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2.3.4
|
||||
@ -44,3 +42,4 @@ jobs:
|
||||
|
||||
- name: SonarCloud analysis
|
||||
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
|
||||
if: ${{ env.SONAR_TOKEN != 0 }}
|
||||
|
Loading…
Reference in New Issue
Block a user