mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 05:19:11 +08:00 
			
		
		
		
	.
This commit is contained in:
		
							
								
								
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -10943,7 +10943,7 @@ function downloadTool(url, dest, auth) {
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            // Otherwise retry
 | 
			
		||||
            return true;
 | 
			
		||||
            return false;
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
@@ -10965,7 +10965,7 @@ function downloadToolAttempt(url, dest, auth) {
 | 
			
		||||
            };
 | 
			
		||||
        }
 | 
			
		||||
        const response = yield http.get(url, headers);
 | 
			
		||||
        throw new HTTPError(429);
 | 
			
		||||
        throw new HTTPError(500);
 | 
			
		||||
        if (response.message.statusCode !== 200) {
 | 
			
		||||
            const err = new HTTPError(response.message.statusCode);
 | 
			
		||||
            core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user