mirror of
				https://github.com/actions/download-artifact.git
				synced 2025-10-31 16:33:40 +00:00 
			
		
		
		
	bundle
This commit is contained in:
		
							parent
							
								
									171183c7dc
								
							
						
					
					
						commit
						b83057b90d
					
				
							
								
								
									
										9
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -118848,13 +118848,12 @@ function run() { | |||||||
|             // if the length of artifactIds exactly 1 fetch the latest artifact by its name and check the ID
 |             // if the length of artifactIds exactly 1 fetch the latest artifact by its name and check the ID
 | ||||||
|             if (artifactIds.length === 1) { |             if (artifactIds.length === 1) { | ||||||
|                 core.debug(`Only one artifact ID provided. Fetching latest artifact by its name and checking the ID`); |                 core.debug(`Only one artifact ID provided. Fetching latest artifact by its name and checking the ID`); | ||||||
|                 const getArtifactResponse = yield artifact_1.default.getArtifact(inputs.name, Object.assign({}, options)); |                 const { artifact: targetArtifact } = yield artifact_1.default.getArtifact(inputs.name, options); | ||||||
|                 if (!getArtifactResponse || !getArtifactResponse.artifact) { |                 if (!targetArtifact) { | ||||||
|                     throw new Error(`Artifact with ID '${artifactIds[0]}' not found. Please check the ID.`); |                     throw new Error(`Artifact with ID '${artifactIds[0]}' not found. Please check the ID.`); | ||||||
|                 } |                 } | ||||||
|                 const artifact = getArtifactResponse.artifact; |                 core.debug(`Found artifact by ID '${targetArtifact.name}' (ID: ${targetArtifact.id}, Size: ${targetArtifact.size})`); | ||||||
|                 core.debug(`Found artifact by ID '${artifact.name}' (ID: ${artifact.id}, Size: ${artifact.size})`); |                 artifacts = [targetArtifact]; | ||||||
|                 artifacts = [artifact]; |  | ||||||
|             } |             } | ||||||
|             else { |             else { | ||||||
|                 core.info(`Multiple artifact IDs provided. Fetching all artifacts to filter by ID`); |                 core.info(`Multiple artifact IDs provided. Fetching all artifacts to filter by ID`); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user