diff --git a/dist/main/index.js b/dist/main/index.js index caefa0a..69209a1 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -70322,9 +70322,13 @@ exports.checkForUpdates = void 0; const core = __importStar(__nccwpck_require__(2186)); function checkForUpdates(graalVMVersion, javaVersion) { return __awaiter(this, void 0, void 0, function* () { + if (javaVersion === '20') { + core.notice('A new GraalVM release is available! Please consider upgrading to GraalVM for JDK 21: https://medium.com/p/ee01177dd12d'); + return; + } if (graalVMVersion.length > 0 && (javaVersion === '17' || javaVersion === '19')) { - const recommendedJDK = javaVersion === '17' ? '17' : '20'; + const recommendedJDK = javaVersion === '17' ? '17' : '21'; core.notice(`A new GraalVM release is available! Please consider upgrading to GraalVM for JDK ${recommendedJDK}. Instructions: https://github.com/graalvm/setup-graalvm#migrating-from-graalvm-223-or-earlier-to-the-new-graalvm-for-jdk-17-and-later`); return; } diff --git a/src/features/check-for-updates.ts b/src/features/check-for-updates.ts index 4960bad..af882c1 100644 --- a/src/features/check-for-updates.ts +++ b/src/features/check-for-updates.ts @@ -4,11 +4,17 @@ export async function checkForUpdates( graalVMVersion: string, javaVersion: string ): Promise { + if (javaVersion === '20') { + core.notice( + 'A new GraalVM release is available! Please consider upgrading to GraalVM for JDK 21: https://medium.com/p/ee01177dd12d' + ) + return + } if ( graalVMVersion.length > 0 && (javaVersion === '17' || javaVersion === '19') ) { - const recommendedJDK = javaVersion === '17' ? '17' : '20' + const recommendedJDK = javaVersion === '17' ? '17' : '21' core.notice( `A new GraalVM release is available! Please consider upgrading to GraalVM for JDK ${recommendedJDK}. Instructions: https://github.com/graalvm/setup-graalvm#migrating-from-graalvm-223-or-earlier-to-the-new-graalvm-for-jdk-17-and-later` )