mirror of
				https://github.com/actions/download-artifact.git
				synced 2025-11-04 03:23:41 +00:00 
			
		
		
		
	Print resolved path with debug
This commit is contained in:
		
							parent
							
								
									0d118dea33
								
							
						
					
					
						commit
						ec85c03339
					
				
							
								
								
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@ -6644,6 +6644,7 @@ function run() {
 | 
				
			|||||||
            const path = core.getInput(constants_1.Inputs.Path, { required: false });
 | 
					            const path = core.getInput(constants_1.Inputs.Path, { required: false });
 | 
				
			||||||
            // resolve tilde expansion
 | 
					            // resolve tilde expansion
 | 
				
			||||||
            const resolvedPath = path_1.resolve(path.replace('~', os.homedir));
 | 
					            const resolvedPath = path_1.resolve(path.replace('~', os.homedir));
 | 
				
			||||||
 | 
					            core.debug(`Resolved path is ${resolvedPath}`);
 | 
				
			||||||
            const artifactClient = artifact.create();
 | 
					            const artifactClient = artifact.create();
 | 
				
			||||||
            if (!name) {
 | 
					            if (!name) {
 | 
				
			||||||
                // download all artifacts
 | 
					                // download all artifacts
 | 
				
			||||||
 | 
				
			|||||||
@ -11,6 +11,7 @@ async function run(): Promise<void> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    // resolve tilde expansion
 | 
					    // resolve tilde expansion
 | 
				
			||||||
    const resolvedPath = resolve(path.replace('~', os.homedir))
 | 
					    const resolvedPath = resolve(path.replace('~', os.homedir))
 | 
				
			||||||
 | 
					    core.debug(`Resolved path is ${resolvedPath}`)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const artifactClient = artifact.create()
 | 
					    const artifactClient = artifact.create()
 | 
				
			||||||
    if (!name) {
 | 
					    if (!name) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user