From 54c2bcf21391dd219b7453520f5f09d32ec63aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GREFFIER?= Date: Thu, 26 Jan 2023 14:15:59 +0100 Subject: [PATCH] Updated deprecated sonarqube task (#242) --- .github/workflows/on_pull_request.yml | 2 +- .github/workflows/on_push_master.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on_pull_request.yml b/.github/workflows/on_pull_request.yml index e18c9ab0..b63ca8df 100644 --- a/.github/workflows/on_pull_request.yml +++ b/.github/workflows/on_pull_request.yml @@ -37,7 +37,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: ./gradlew build jacocoTestReport sonarqube --info + run: ./gradlew build jacocoTestReport sonar --info - name: Publish test report if: always() diff --git a/.github/workflows/on_push_master.yml b/.github/workflows/on_push_master.yml index 9cae66de..3212a387 100644 --- a/.github/workflows/on_push_master.yml +++ b/.github/workflows/on_push_master.yml @@ -45,7 +45,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | - ./gradlew build jacocoTestReport sonarqube --info + ./gradlew build jacocoTestReport sonar --info echo current_version=$(echo $(./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')) >> $GITHUB_OUTPUT - name: Publish test report