mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/setup-python
				synced 2025-10-31 13:41:06 +08:00 
			
		
		
		
	prettier
This commit is contained in:
		
							parent
							
								
									3250b5373c
								
							
						
					
					
						commit
						011c443f81
					
				
							
								
								
									
										6
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -6646,11 +6646,13 @@ function cacheDependencies(cache, pythonVersion) { | |||||||
| function run() { | function run() { | ||||||
|     return __awaiter(this, void 0, void 0, function* () { |     return __awaiter(this, void 0, void 0, function* () { | ||||||
|         if (process.env['AGENT_TOOLSDIRECTORY'] !== undefined) { |         if (process.env['AGENT_TOOLSDIRECTORY'] !== undefined) { | ||||||
|             core.debug('Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + process.env['AGENT_TOOLSDIRECTORY']); |             core.debug('Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + | ||||||
|  |                 process.env['AGENT_TOOLSDIRECTORY']); | ||||||
|             process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; |             process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; | ||||||
|         } |         } | ||||||
|         else { |         else { | ||||||
|             core.debug('Python is expected to be installed into RUNNER_TOOL_CACHE=' + process.env['RUNNER_TOOL_CACHE']); |             core.debug('Python is expected to be installed into RUNNER_TOOL_CACHE=' + | ||||||
|  |                 process.env['RUNNER_TOOL_CACHE']); | ||||||
|         } |         } | ||||||
|         try { |         try { | ||||||
|             const version = core.getInput('python-version'); |             const version = core.getInput('python-version'); | ||||||
|  | |||||||
| @ -25,12 +25,17 @@ async function cacheDependencies(cache: string, pythonVersion: string) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| async function run() { | async function run() { | ||||||
| 
 |  | ||||||
|   if (process.env['AGENT_TOOLSDIRECTORY'] !== undefined) { |   if (process.env['AGENT_TOOLSDIRECTORY'] !== undefined) { | ||||||
|     core.debug('Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + process.env['AGENT_TOOLSDIRECTORY'] ) |     core.debug( | ||||||
|     process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'] |       'Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + | ||||||
|  |         process.env['AGENT_TOOLSDIRECTORY'] | ||||||
|  |     ); | ||||||
|  |     process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; | ||||||
|   } else { |   } else { | ||||||
|     core.debug('Python is expected to be installed into RUNNER_TOOL_CACHE=' + process.env['RUNNER_TOOL_CACHE'] ) |     core.debug( | ||||||
|  |       'Python is expected to be installed into RUNNER_TOOL_CACHE=' + | ||||||
|  |         process.env['RUNNER_TOOL_CACHE'] | ||||||
|  |     ); | ||||||
|   } |   } | ||||||
|   try { |   try { | ||||||
|     const version = core.getInput('python-version'); |     const version = core.getInput('python-version'); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sergey Dolin
						Sergey Dolin