diff --git a/.github/workflows/post-commit.yml b/.github/workflows/post-commit.yml index 14a695112b2..ca9a2029106 100644 --- a/.github/workflows/post-commit.yml +++ b/.github/workflows/post-commit.yml @@ -272,11 +272,14 @@ jobs: path: target/artifacts - name: Calculate combined coverage run: ./hadoop-ozone/dev-support/checks/coverage.sh - - name: Upload coverage to Sonar - uses: ./.github/buildenv + - name: Setup java 11 + uses: actions/setup-java@v1 if: github.repository == 'apache/ozone' && github.event_name != 'pull_request' with: - args: ./hadoop-ozone/dev-support/checks/sonar.sh + 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 }}