await install

This commit is contained in:
Evgenii Korolevskii 2022-11-24 18:14:22 +01:00
parent f8c67ed9c3
commit 7bad438e84
2 changed files with 3 additions and 3 deletions

2
dist/setup/index.js vendored
View file

@ -105073,7 +105073,7 @@ function run() {
}
const stringVersion = validVer;
try {
installVersion(stringVersion);
yield installVersion(stringVersion);
}
catch (error) {
core.info(`${stringVersion} not found`);

View file

@ -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")