From 8903fa7ce6bee369c03ffeae545605c0d8ae192a Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 15 Feb 2024 15:52:21 -0600 Subject: [PATCH] Update actions/setup-java --- .github/workflows/build-tests.yml | 2 +- .github/workflows/code-analysis-pull.yml | 3 ++- .github/workflows/code-analysis.yml | 4 ++-- .github/workflows/publish.yml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index 0ddc5da6d..ed7b58f11 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -39,7 +39,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'adopt' diff --git a/.github/workflows/code-analysis-pull.yml b/.github/workflows/code-analysis-pull.yml index 927d24546..f9a40d4f0 100644 --- a/.github/workflows/code-analysis-pull.yml +++ b/.github/workflows/code-analysis-pull.yml @@ -100,9 +100,10 @@ jobs: git rebase jss/${{ needs.retrieve-pr.outputs.pr-base }} - name: Set up JDK 17 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 17 + distribution: 'adopt' - name: Cache SonarCloud packages uses: actions/cache@v4 diff --git a/.github/workflows/code-analysis.yml b/.github/workflows/code-analysis.yml index f053b381e..98a12ec08 100644 --- a/.github/workflows/code-analysis.yml +++ b/.github/workflows/code-analysis.yml @@ -22,10 +22,10 @@ jobs: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 - distribution: 'zulu' + distribution: 'adopt' - name: Cache SonarCloud packages uses: actions/cache@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e54a161e3..f5d22ad5d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'adopt'