This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch HTHou-patch-1 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 74bb290dee402c4198a05d94f45f8c4684f011ea Author: Haonan <[email protected]> AuthorDate: Wed Apr 27 21:30:15 2022 +0800 Disable sonar check for PRs from fork repo --- .github/workflows/sonar-coveralls.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonar-coveralls.yml b/.github/workflows/sonar-coveralls.yml index e488e97b2f..cac1a16638 100644 --- a/.github/workflows/sonar-coveralls.yml +++ b/.github/workflows/sonar-coveralls.yml @@ -32,6 +32,7 @@ env: jobs: ubuntu: runs-on: ubuntu-latest + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'apache/iotdb' || github.event_name == 'push' steps: - uses: actions/checkout@v2 @@ -59,7 +60,7 @@ jobs: -DrepoToken=${{ secrets.COVERALL_TOKEN }} \ -Pcode-coverage -P '!testcontainer' - name: SonarCloud Report - if: ${{ success() && (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'apache/iotdb' || github.event_name == 'push')}} + if: ${{ success() }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
