You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2021/02/06 01:40:21 UTC

[iotdb] branch master updated: add github action environment for sonar (#2643)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 90a8a49  add github action environment for sonar (#2643)
90a8a49 is described below

commit 90a8a495bdf07504e94fa37a1cb45ac07e5a429b
Author: Xiangdong Huang <hx...@apache.org>
AuthorDate: Sat Feb 6 09:39:56 2021 +0800

    add github action environment for sonar (#2643)
---
 .github/workflows/main-linux.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/main-linux.yml b/.github/workflows/main-linux.yml
index 5f8361e..d0d0b05 100644
--- a/.github/workflows/main-linux.yml
+++ b/.github/workflows/main-linux.yml
@@ -19,8 +19,8 @@ on:
       - cluster_new
     paths-ignore:
       - 'docs/**'
-  workflow_dispatch: 
-    
+  workflow_dispatch:
+
 jobs:
   ubuntu:
     strategy:
@@ -58,6 +58,9 @@ jobs:
           -Pcode-coverage
       - name: SonarCloud Report
         if: ${{ success() &&  matrix.java == '11'}}
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
         run: |
           mvn -B verify sonar:sonar \
           -Dsonar.organization=apache \