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

[iotdb] 01/01: Disable sonar for fork PR since it cannot work

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

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

commit fa322e3483b60a26522471e021237622a977aabb
Author: HTHou <hh...@outlook.com>
AuthorDate: Wed Jun 2 17:58:04 2021 +0800

    Disable sonar for fork PR since it cannot work
---
 .github/workflows/sonar-coveralls.yml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/sonar-coveralls.yml b/.github/workflows/sonar-coveralls.yml
index ab295bc..93f0424 100644
--- a/.github/workflows/sonar-coveralls.yml
+++ b/.github/workflows/sonar-coveralls.yml
@@ -10,6 +10,13 @@ on:
       - "rel/*"
     paths-ignore:
       - "docs/**"
+  pull_request:
+    branches:
+      - master
+      - "rel/*"
+      - cluster_new
+    paths-ignore:
+      - "docs/**"
   pull_request_target:
     branches:
       - master
@@ -54,7 +61,7 @@ jobs:
           -DrepoToken=${{ secrets.COVERALL_TOKEN }} \
           -Pcode-coverage
       - name: SonarCloud Report
-        if: ${{ success() }}
+        if: ${{ success() && (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'apache/iotdb' || github.event_name == 'push')}}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}