mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
await install
This commit is contained in:
parent
f8c67ed9c3
commit
7bad438e84
2 changed files with 3 additions and 3 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -105073,7 +105073,7 @@ function run() {
|
||||||
}
|
}
|
||||||
const stringVersion = validVer;
|
const stringVersion = validVer;
|
||||||
try {
|
try {
|
||||||
installVersion(stringVersion);
|
yield installVersion(stringVersion);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.info(`${stringVersion} not found`);
|
core.info(`${stringVersion} not found`);
|
||||||
|
|
|
@ -22,7 +22,7 @@ async function run() {
|
||||||
let toolchainIds = core.getMultilineInput(constants.INPUT_MVN_TOOLCHAIN_ID);
|
let toolchainIds = core.getMultilineInput(constants.INPUT_MVN_TOOLCHAIN_ID);
|
||||||
|
|
||||||
core.startGroup('Installed distributions');
|
core.startGroup('Installed distributions');
|
||||||
|
|
||||||
if (versions.length !== toolchainIds.length) {
|
if (versions.length !== toolchainIds.length) {
|
||||||
toolchainIds = [];
|
toolchainIds = [];
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ async function run() {
|
||||||
}
|
}
|
||||||
const stringVersion = validVer as string;
|
const stringVersion = validVer as string;
|
||||||
try {
|
try {
|
||||||
installVersion(stringVersion)
|
await installVersion(stringVersion)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.info(`${stringVersion} not found`)
|
core.info(`${stringVersion} not found`)
|
||||||
throw new Error("some err")
|
throw new Error("some err")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue