mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 05:19:14 +08:00 
			
		
		
		
	switch GITHUB_URL to GITHUB_SERVER_URL (#248)
This commit is contained in:
		
							
								
								
									
										5
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -1400,7 +1400,10 @@ function getFetchUrl(settings) {
 | 
			
		||||
}
 | 
			
		||||
exports.getFetchUrl = getFetchUrl;
 | 
			
		||||
function getServerUrl() {
 | 
			
		||||
    return new url_1.URL(process.env['GITHUB_URL'] || 'https://github.com');
 | 
			
		||||
    // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
 | 
			
		||||
    return new url_1.URL(process.env['GITHUB_SERVER_URL'] ||
 | 
			
		||||
        process.env['GITHUB_URL'] ||
 | 
			
		||||
        'https://github.com');
 | 
			
		||||
}
 | 
			
		||||
exports.getServerUrl = getServerUrl;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user