mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/setup-python
				synced 2025-10-31 08:51:06 +08:00 
			
		
		
		
	Fix naming
This commit is contained in:
		
							parent
							
								
									e29a7c89f6
								
							
						
					
					
						commit
						56f6060254
					
				| @ -39,15 +39,15 @@ function resolveVersionInput(): string { | ||||
|   if (versionFile) { | ||||
|     const defaultVersionFile = '.python-version'; | ||||
| 
 | ||||
|     const VersionFileExists = fs.existsSync(versionFile); | ||||
|     const versionFileExists = fs.existsSync(versionFile); | ||||
|     const defaultVersionFileExists = fs.existsSync(defaultVersionFile); | ||||
| 
 | ||||
|     if (!VersionFileExists && !defaultVersionFileExists) { | ||||
|     if (!versionFileExists && !defaultVersionFileExists) { | ||||
|       throw new Error( | ||||
|         `The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found` | ||||
|       ); | ||||
|     } | ||||
|     if (VersionFileExists) { | ||||
|     if (versionFileExists) { | ||||
|       version = fs.readFileSync(versionFile, 'utf8'); | ||||
|       core.info(`Resolved ${versionFile} as ${version}`); | ||||
|     } else { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 IvanZosimov
						IvanZosimov