From 7bad438e84b5d045c4e6a860e757075e3e738f09 Mon Sep 17 00:00:00 2001 From: Evgenii Korolevskii Date: Thu, 24 Nov 2022 18:14:22 +0100 Subject: [PATCH] await install --- dist/setup/index.js | 2 +- src/setup-java.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 2adc7310..6fd0065c 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -105073,7 +105073,7 @@ function run() { } const stringVersion = validVer; try { - installVersion(stringVersion); + yield installVersion(stringVersion); } catch (error) { core.info(`${stringVersion} not found`); diff --git a/src/setup-java.ts b/src/setup-java.ts index 3ec14892..f829a6fd 100644 --- a/src/setup-java.ts +++ b/src/setup-java.ts @@ -22,7 +22,7 @@ async function run() { let toolchainIds = core.getMultilineInput(constants.INPUT_MVN_TOOLCHAIN_ID); core.startGroup('Installed distributions'); - + if (versions.length !== toolchainIds.length) { toolchainIds = []; } @@ -40,7 +40,7 @@ async function run() { } const stringVersion = validVer as string; try { - installVersion(stringVersion) + await installVersion(stringVersion) } catch (error) { core.info(`${stringVersion} not found`) throw new Error("some err")