mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +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;
|
||||
try {
|
||||
installVersion(stringVersion);
|
||||
yield installVersion(stringVersion);
|
||||
}
|
||||
catch (error) {
|
||||
core.info(`${stringVersion} not found`);
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue