1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

[CI skip] Updated workflows

This commit is contained in:
TheBusyBiscuit 2021-07-04 13:18:47 +02:00
parent 101139bb2f
commit 1806b3399f
2 changed files with 7 additions and 4 deletions

View File

@ -13,7 +13,7 @@ jobs:
if: github.repository == 'Slimefun/Slimefun4'
steps:
- uses: WalshyDev/pr-labels@v1.1
- uses: baked-libs/pull-request-labels@v1.1
id: labeller
name: Apply labels based on branch
with:

View File

@ -9,6 +9,12 @@ 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
@ -38,6 +44,3 @@ jobs:
- name: SonarCloud analysis
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}