mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/setup-python
				synced 2025-10-31 13:41:06 +08:00 
			
		
		
		
	Fix typos
This commit is contained in:
		
							parent
							
								
									a6b01c4e40
								
							
						
					
					
						commit
						d97b6edda3
					
				
							
								
								
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -65263,7 +65263,7 @@ function resolveVersionInput() { | ||||
|     let version = core.getInput('python-version'); | ||||
|     let versionFile = core.getInput('python-version-file'); | ||||
|     if (version && versionFile) { | ||||
|         core.warning('Both python-version and python-version-file inputs are specified, only python-version will be used'); | ||||
|         core.warning('Both python-version and python-version-file inputs are specified, only python-version will be used.'); | ||||
|     } | ||||
|     if (version) { | ||||
|         return version; | ||||
| @ -65278,7 +65278,7 @@ function resolveVersionInput() { | ||||
|                 versionFile = defaultVersionFile; | ||||
|             } | ||||
|             else { | ||||
|                 throw new Error(`The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found`); | ||||
|                 throw new Error(`The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found.`); | ||||
|             } | ||||
|         } | ||||
|         version = fs_1.default.readFileSync(versionFile, 'utf8'); | ||||
|  | ||||
| @ -28,7 +28,7 @@ function resolveVersionInput(): string { | ||||
| 
 | ||||
|   if (version && versionFile) { | ||||
|     core.warning( | ||||
|       'Both python-version and python-version-file inputs are specified, only python-version will be used' | ||||
|       'Both python-version and python-version-file inputs are specified, only python-version will be used.' | ||||
|     ); | ||||
|   } | ||||
| 
 | ||||
| @ -50,7 +50,7 @@ function resolveVersionInput(): string { | ||||
|         versionFile = defaultVersionFile; | ||||
|       } else { | ||||
|         throw new Error( | ||||
|           `The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found` | ||||
|           `The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found.` | ||||
|         ); | ||||
|       } | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 IvanZosimov
						IvanZosimov