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

[ozone] branch master updated: HDDS-4801. Skip coverage check for PRs and in forks (#1909)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 19d115d  HDDS-4801. Skip coverage check for PRs and in forks (#1909)
19d115d is described below

commit 19d115d997f737a1e609909ab3a843e673139789
Author: Doroszlai, Attila <64...@users.noreply.github.com>
AuthorDate: Tue Feb 9 11:06:20 2021 +0100

    HDDS-4801. Skip coverage check for PRs and in forks (#1909)
---
 .github/workflows/post-commit.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.github/workflows/post-commit.yml b/.github/workflows/post-commit.yml
index 7fdc808..b7b3869 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -256,6 +256,7 @@ jobs:
         continue-on-error: true
   coverage:
     runs-on: ubuntu-18.04
+    if: github.repository == 'apache/ozone' && github.event_name != 'pull_request'
     needs:
       - acceptance
       - integration
@@ -275,12 +276,10 @@ jobs:
         run: ./hadoop-ozone/dev-support/checks/coverage.sh
       - name: Setup java 11
         uses: actions/setup-java@v1
-        if: github.repository == 'apache/ozone' && github.event_name != 'pull_request'
         with:
           java-version: 11
       - name: Upload coverage to Sonar
         run: ./hadoop-ozone/dev-support/checks/sonar.sh
-        if: github.repository == 'apache/ozone' && github.event_name != 'pull_request'
         env:
           SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org