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:
parent
0fdd6edb00
commit
6971e4225c
5
.github/workflows/sonarcloud.yml
vendored
5
.github/workflows/sonarcloud.yml
vendored
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user