You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2023/05/09 15:55:14 UTC

[shardingsphere] branch master updated: Refactor : refactor the sonarcloud action for more args (#25540)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new f34a6b1602f Refactor : refactor the sonarcloud action for more args (#25540)
f34a6b1602f is described below

commit f34a6b1602fba9b8335077fb250686471da4396f
Author: 孙念君 Nianjun Sun <su...@apache.org>
AuthorDate: Tue May 9 23:55:00 2023 +0800

    Refactor : refactor the sonarcloud action for more args (#25540)
    
    Co-authored-by: shardingsphere <de...@shardingsphere.apache.org>
---
 .github/workflows/check-sonarcloud.yml | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/check-sonarcloud.yml b/.github/workflows/check-sonarcloud.yml
index 3ed48f8b4e8..d81fadde7cb 100644
--- a/.github/workflows/check-sonarcloud.yml
+++ b/.github/workflows/check-sonarcloud.yml
@@ -48,18 +48,11 @@ jobs:
         with:
           distribution: 'temurin'
           java-version: 11
-      - uses: actions/cache@v3
-        with:
-          path: ~/.sonar/cache
-          key: ${{ runner.os }}-sonar
-          restore-keys: ${{ runner.os }}-sonar
-      - uses: actions/cache@v3
-        with:
-          path: ~/.m2/repository
-          key: ${{ env.CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }}
-          restore-keys: |
-            ${{ env.CACHE_PREFIX }}-maven-third-party-
       - uses: SonarSource/SonarCloud-github-action@master
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+          SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
+        with:
+          args: >
+            -Dsonar.organization=apache
+            -Dsonar.projectKey=apache_shardingsphere