From 1806b3399f4e01db11b1dc7eec173a79af91c75d Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Sun, 4 Jul 2021 13:18:47 +0200 Subject: [PATCH] [CI skip] Updated workflows --- .github/workflows/pr-labels.yml | 2 +- .github/workflows/sonarcloud.yml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index e5cd4a160..3358c3c5f 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -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: diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 922f66eea..8369147b4 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -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 }}