mirror of
				https://github.com/actions/setup-java.git
				synced 2025-10-31 22:40:54 +00:00 
			
		
		
		
	remove debug line and revert owner, branch
This commit is contained in:
		
					parent
					
						
							
								dbc0c85f6f
							
						
					
				
			
			
				commit
				
					
						eed97a9597
					
				
			
		
					 2 changed files with 5 additions and 6 deletions
				
			
		
							
								
								
									
										5
									
								
								dist/setup/index.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/setup/index.js
									
										
									
									
										vendored
									
									
								
							|  | @ -123968,7 +123968,6 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { | |||
|         return __awaiter(this, void 0, void 0, function* () { | ||||
|             core.info(`Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaRelease.url} ...`); | ||||
|             let javaArchivePath = yield tc.downloadTool(javaRelease.url); | ||||
|             core.info(`javaArchivePath is ${javaArchivePath}`); | ||||
|             core.info(`Extracting Java archive...`); | ||||
|             const extension = (0, util_1.getDownloadArchiveExtension)(); | ||||
|             if (process.platform === 'win32' && (this.architecture === 'arm64' || this.architecture === 'aarch64')) { | ||||
|  | @ -124015,9 +124014,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { | |||
|         return __awaiter(this, void 0, void 0, function* () { | ||||
|             // TODO get these dynamically!
 | ||||
|             // We will need Microsoft to add an endpoint where we can query for versions.
 | ||||
|             const owner = 'dmitry-shibanov'; | ||||
|             const owner = 'actions'; | ||||
|             const repository = 'setup-java'; | ||||
|             const branch = 'v-dmshib/add-arm64-windows-microsoft'; | ||||
|             const branch = 'main'; | ||||
|             const filePath = 'src/distributions/microsoft/microsoft-openjdk-versions.json'; | ||||
|             let releases = null; | ||||
|             const fileUrl = `https://api.github.com/repos/${owner}/${repository}/contents/${filePath}?ref=${branch}`; | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ export class MicrosoftDistributions extends JavaBase { | |||
|       `Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaRelease.url} ...` | ||||
|     ); | ||||
|     let javaArchivePath = await tc.downloadTool(javaRelease.url); | ||||
|     core.info(`javaArchivePath is ${javaArchivePath}`); | ||||
| 
 | ||||
|     core.info(`Extracting Java archive...`); | ||||
|     const extension = getDownloadArchiveExtension(); | ||||
|     if (process.platform === 'win32' && (this.architecture === 'arm64' || this.architecture === 'aarch64')) { | ||||
|  | @ -93,9 +93,9 @@ export class MicrosoftDistributions extends JavaBase { | |||
|   private async getAvailableVersions(): Promise<tc.IToolRelease[] | null> { | ||||
|     // TODO get these dynamically!
 | ||||
|     // We will need Microsoft to add an endpoint where we can query for versions.
 | ||||
|     const owner = 'dmitry-shibanov'; | ||||
|     const owner = 'actions'; | ||||
|     const repository = 'setup-java'; | ||||
|     const branch = 'v-dmshib/add-arm64-windows-microsoft'; | ||||
|     const branch = 'main'; | ||||
|     const filePath = | ||||
|       'src/distributions/microsoft/microsoft-openjdk-versions.json'; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue