mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46: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';
|
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let latest = 'explicit';
|
let latest = '';
|
||||||
if (version.endsWith('x')) {
|
if (version.endsWith('x')) {
|
||||||
if (version.endsWith('.x')) {
|
if (version.endsWith('.x')) {
|
||||||
version = version.slice(0, -2);
|
version = version.slice(0, -2);
|
||||||
|
@ -33716,10 +33716,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
||||||
latest = 'overall';
|
latest = 'overall';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (version.endsWith('0') ||
|
if (version.includes('ea')) {
|
||||||
version.length === 1 ||
|
|
||||||
version.length === 2 ||
|
|
||||||
version.includes('ea')) {
|
|
||||||
latest = 'overall';
|
latest = 'overall';
|
||||||
}
|
}
|
||||||
let url = constants_1.DISCO_URL + constants_1.PACKAGES_PATH;
|
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')) {
|
||||||
if (version.endsWith('.x')) {
|
if (version.endsWith('.x')) {
|
||||||
version = version.slice(0, -2);
|
version = version.slice(0, -2);
|
||||||
|
@ -246,12 +246,7 @@ async function getDownloadInfo(
|
||||||
latest = 'overall';
|
latest = 'overall';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (
|
if (version.includes('ea')) {
|
||||||
version.endsWith('0') ||
|
|
||||||
version.length === 1 ||
|
|
||||||
version.length === 2 ||
|
|
||||||
version.includes('ea')
|
|
||||||
) {
|
|
||||||
latest = 'overall';
|
latest = 'overall';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue