mirror of
https://github.com/actions/setup-java.git
synced 2025-07-01 05:14:17 +00:00
Check for 1.x version
This commit is contained in:
parent
dbd07b33cb
commit
736f681405
2 changed files with 6 additions and 2 deletions
|
@ -254,7 +254,11 @@ async function getDownloadInfo(
|
|||
url += '&architecture=' + architecture;
|
||||
url += '&operating_system=' + operatingSystem;
|
||||
url += '&archive_type=' + archiveType;
|
||||
if (version.includes('x') || version.includes('ea')) {
|
||||
if (
|
||||
version.includes('x') ||
|
||||
version.includes('ea') ||
|
||||
version.startsWith('1.')
|
||||
) {
|
||||
url += '&latest=overall';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue