mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
When version contains 'x' use &latest=overall
This commit is contained in:
parent
b101cc1ed2
commit
d3c44ebddc
2 changed files with 2 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -33725,7 +33725,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
||||||
url += '&architecture=' + architecture;
|
url += '&architecture=' + architecture;
|
||||||
url += '&operating_system=' + operatingSystem;
|
url += '&operating_system=' + operatingSystem;
|
||||||
url += '&archive_type=' + archiveType;
|
url += '&archive_type=' + archiveType;
|
||||||
if (version.endsWith('x') || version.includes('ea')) {
|
if (version.includes('x') || version.includes('ea')) {
|
||||||
url += '&latest=overall';
|
url += '&latest=overall';
|
||||||
}
|
}
|
||||||
const http = new httpm.HttpClient('bundles', undefined, {
|
const http = new httpm.HttpClient('bundles', undefined, {
|
||||||
|
|
|
@ -254,7 +254,7 @@ async function getDownloadInfo(
|
||||||
url += '&architecture=' + architecture;
|
url += '&architecture=' + architecture;
|
||||||
url += '&operating_system=' + operatingSystem;
|
url += '&operating_system=' + operatingSystem;
|
||||||
url += '&archive_type=' + archiveType;
|
url += '&archive_type=' + archiveType;
|
||||||
if (version.endsWith('x') || version.includes('ea')) {
|
if (version.includes('x') || version.includes('ea')) {
|
||||||
url += '&latest=overall';
|
url += '&latest=overall';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue