mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
Modified latest parameter
This commit is contained in:
parent
33ea571461
commit
a314fce4b5
2 changed files with 4 additions and 12 deletions
7
dist/setup/index.js
vendored
7
dist/setup/index.js
vendored
|
@ -33705,7 +33705,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
|||
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
||||
}
|
||||
}
|
||||
let latest = 'explicit';
|
||||
let latest = '';
|
||||
if (version.endsWith('x')) {
|
||||
if (version.endsWith('.x')) {
|
||||
version = version.slice(0, -2);
|
||||
|
@ -33716,10 +33716,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
|||
latest = 'overall';
|
||||
}
|
||||
}
|
||||
if (version.endsWith('0') ||
|
||||
version.length === 1 ||
|
||||
version.length === 2 ||
|
||||
version.includes('ea')) {
|
||||
if (version.includes('ea')) {
|
||||
latest = 'overall';
|
||||
}
|
||||
let url = constants_1.DISCO_URL + constants_1.PACKAGES_PATH;
|
||||
|
|
|
@ -236,7 +236,7 @@ async function getDownloadInfo(
|
|||
}
|
||||
}
|
||||
|
||||
let latest = 'explicit';
|
||||
let latest = '';
|
||||
if (version.endsWith('x')) {
|
||||
if (version.endsWith('.x')) {
|
||||
version = version.slice(0, -2);
|
||||
|
@ -246,12 +246,7 @@ async function getDownloadInfo(
|
|||
latest = 'overall';
|
||||
}
|
||||
}
|
||||
if (
|
||||
version.endsWith('0') ||
|
||||
version.length === 1 ||
|
||||
version.length === 2 ||
|
||||
version.includes('ea')
|
||||
) {
|
||||
if (version.includes('ea')) {
|
||||
latest = 'overall';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue