From b15c376e59e1f1319c107f9c5c40a29d70b2db07 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Tue, 10 Dec 2024 17:42:55 +0100 Subject: [PATCH] fix and update JDK check workflow --- .github/workflows/check-jdk-updates.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-jdk-updates.yml b/.github/workflows/check-jdk-updates.yml index c73546994..628faac43 100644 --- a/.github/workflows/check-jdk-updates.yml +++ b/.github/workflows/check-jdk-updates.yml @@ -5,7 +5,7 @@ on: - cron: '0 0 1 * *' # run once a month at the first day of month env: - JDK_VERSION: '22.0.1+8' + JDK_VERSION: '23.0.1+11' JDK_VENDOR: zulu jobs: @@ -28,13 +28,18 @@ jobs: jdk-latest: name: Checkout latest jdk version runs-on: ubuntu-latest + env: + JDK_MAJOR_VERSION: 23 outputs: jdk-date: ${{ steps.get-data.outputs.jdk-date}} jdk-version: ${{ steps.get-data.outputs.jdk-version}} steps: + - name: Extract major version + run: echo 'JDK_MAJOR_VERSION=${{ env.JDK_VERSION }}'.substring(0,20) >> "$env:GITHUB_ENV" + shell: pwsh - uses: actions/setup-java@v4 with: - java-version: 21 + java-version: ${{ env.JDK_MAJOR_VERSION}} distribution: ${{ env.JDK_VENDOR }} check-latest: true - name: Read JAVA_VERSION_DATE and store in env variable