mirror of
				https://github.com/actions/setup-java.git
				synced 2025-11-04 00:10:54 +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
				
			
		
							
								
								
									
										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 += '&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';
 | 
			
		||||
        }
 | 
			
		||||
        const http = new httpm.HttpClient('bundles', undefined, {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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