mirror of
				https://kkgithub.com/actions/setup-python.git
				synced 2025-11-01 03:01:51 +08:00 
			
		
		
		
	Add warning in case the versionFile isn't found
This commit is contained in:
		
							
								
								
									
										1
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -65275,6 +65275,7 @@ function resolveVersionInput() { | |||||||
|                 throw new Error(`The specified python version file at: ${versionFile} does not exist.`); |                 throw new Error(`The specified python version file at: ${versionFile} does not exist.`); | ||||||
|             } |             } | ||||||
|             if (fs_1.default.existsSync(defaultVersionFile)) { |             if (fs_1.default.existsSync(defaultVersionFile)) { | ||||||
|  |                 core.warning(`The specified python version file at: ${versionFile} does not exist. Attempting to find ${defaultVersionFile} file.`); | ||||||
|                 versionFile = defaultVersionFile; |                 versionFile = defaultVersionFile; | ||||||
|             } |             } | ||||||
|             else { |             else { | ||||||
|  | |||||||
| @ -47,6 +47,9 @@ function resolveVersionInput(): string { | |||||||
|       } |       } | ||||||
|  |  | ||||||
|       if (fs.existsSync(defaultVersionFile)) { |       if (fs.existsSync(defaultVersionFile)) { | ||||||
|  |         core.warning( | ||||||
|  |           `The specified python version file at: ${versionFile} does not exist. Attempting to find ${defaultVersionFile} file.` | ||||||
|  |         ); | ||||||
|         versionFile = defaultVersionFile; |         versionFile = defaultVersionFile; | ||||||
|       } else { |       } else { | ||||||
|         throw new Error( |         throw new Error( | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 IvanZosimov
					IvanZosimov