mirror of
https://github.com/actions/setup-java.git
synced 2025-05-21 18:01:46 +00:00
rigth major version
This commit is contained in:
parent
5162a56729
commit
4a04cfa3c7
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
@ -105077,13 +105077,13 @@ function run() {
|
||||
}
|
||||
catch (error) {
|
||||
core.debug(`${error.toString()}`);
|
||||
const majorMinorVersion = getHigherVersion(stringVersion);
|
||||
try {
|
||||
const majorMinorVersion = getHigherVersion(stringVersion);
|
||||
yield installVersion(majorMinorVersion);
|
||||
}
|
||||
catch (error) {
|
||||
core.debug(`${error.toString()}`);
|
||||
const majorVersion = getHigherVersion(stringVersion);
|
||||
const majorVersion = getHigherVersion(majorMinorVersion);
|
||||
yield installVersion(majorVersion);
|
||||
}
|
||||
}
|
||||
|
@ -43,12 +43,12 @@ async function run() {
|
||||
await installVersion(stringVersion)
|
||||
} catch (error) {
|
||||
core.debug(`${error.toString()}`)
|
||||
const majorMinorVersion = getHigherVersion(stringVersion)
|
||||
try {
|
||||
const majorMinorVersion = getHigherVersion(stringVersion)
|
||||
await installVersion(majorMinorVersion)
|
||||
} catch (error) {
|
||||
core.debug(`${error.toString()}`)
|
||||
const majorVersion = getHigherVersion(stringVersion)
|
||||
const majorVersion = getHigherVersion(majorMinorVersion)
|
||||
await installVersion(majorVersion)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user