rigth major version

This commit is contained in:
Evgenii Korolevskii 2022-11-24 18:29:10 +01:00
parent 5162a56729
commit 4a04cfa3c7
2 changed files with 4 additions and 4 deletions

4
dist/setup/index.js vendored
View file

@ -105077,13 +105077,13 @@ function run() {
}
catch (error) {
core.debug(`${error.toString()}`);
try {
const majorMinorVersion = getHigherVersion(stringVersion);
try {
yield installVersion(majorMinorVersion);
}
catch (error) {
core.debug(`${error.toString()}`);
const majorVersion = getHigherVersion(stringVersion);
const majorVersion = getHigherVersion(majorMinorVersion);
yield installVersion(majorVersion);
}
}

View file

@ -43,12 +43,12 @@ async function run() {
await installVersion(stringVersion)
} catch (error) {
core.debug(`${error.toString()}`)
try {
const majorMinorVersion = getHigherVersion(stringVersion)
try {
await installVersion(majorMinorVersion)
} catch (error) {
core.debug(`${error.toString()}`)
const majorVersion = getHigherVersion(stringVersion)
const majorVersion = getHigherVersion(majorMinorVersion)
await installVersion(majorVersion)
}
}