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

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


The following commit(s) were added to refs/heads/master by this push:
     new 214e8cd0a RATIS-1951. Upgrade sonar check to Java 17 (#978)
214e8cd0a is described below

commit 214e8cd0a78ddde4d5eab605403cc226034ca0f3
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Sun Dec 3 03:40:07 2023 +0100

    RATIS-1951. Upgrade sonar check to Java 17 (#978)
---
 .github/workflows/post-commit.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/post-commit.yml 
b/.github/workflows/post-commit.yml
index b7825f6fd..743fdf6e6 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -205,6 +205,8 @@ jobs:
     if: (github.repository == 'apache/ratis' || github.repository == 
'apache/incubator-ratis') && github.event_name != 'pull_request'
     steps:
         - uses: actions/checkout@v3
+          with:
+            fetch-depth: 0
         - name: Cache for maven dependencies
           uses: actions/cache@v3
           with:
@@ -213,11 +215,11 @@ jobs:
             restore-keys: |
               maven-repo-${{ hashFiles('**/pom.xml') }}
               maven-repo-
-        - name: Setup java 11
+        - name: Setup java 17
           uses: actions/setup-java@v3
           with:
             distribution: 'temurin'
-            java-version: 11
+            java-version: 17
         - run: ./dev-support/checks/sonar.sh
           env:
             SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}

Reply via email to