From 8b27096bbff95189c20c4c853358d5e09740c7d3 Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Mon, 13 Feb 2023 10:30:11 +0100 Subject: [PATCH] Update JDK11 upgrade notice. --- .github/workflows/test.yml | 4 ++-- src/features/check-for-updates.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5731411..84a2c31 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,11 +34,11 @@ jobs: java-version: '17' components: 'native-image' os: ubuntu-18.04 - - version: '22.3.0' + - version: '22.3.1' java-version: '11' # for JDK11 notification components: 'native-image' os: macos-11 - - version: '22.3.0' + - version: '22.3.1' java-version: '17' components: 'native-image' os: windows-2022 diff --git a/src/features/check-for-updates.ts b/src/features/check-for-updates.ts index 375b2c4..609d67c 100644 --- a/src/features/check-for-updates.ts +++ b/src/features/check-for-updates.ts @@ -8,9 +8,9 @@ export async function checkForUpdates( graalVMVersion: string, javaVersion: string ): Promise { - if (graalVMVersion === '22.3.0' && javaVersion === '11') { + if (graalVMVersion.startsWith('22.3.') && javaVersion === '11') { core.notice( - 'Please consider upgrading your project to Java 17+. The GraalVM 22.3.0 release is the last to support JDK11: https://github.com/oracle/graal/issues/5063' + 'Please consider upgrading your project to Java 17+. GraalVM 22.3.X releases are the last to support JDK11: https://github.com/oracle/graal/issues/5063' ) return }