You've already forked setup-dotnet
							
							
				mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 15:26:22 +07:00 
			
		
		
		
	Minor fix
This commit is contained in:
		
							
								
								
									
										5
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -4848,13 +4848,14 @@ function configAuthentication(feedUrl, existingFileLocation = '', processRoot = | |||||||
| } | } | ||||||
| exports.configAuthentication = configAuthentication; | exports.configAuthentication = configAuthentication; | ||||||
| function getExistingNugetConfig(processRoot) { | function getExistingNugetConfig(processRoot) { | ||||||
|  |     const defaultConfigName = 'nuget.config'; | ||||||
|     const configFileNames = fs |     const configFileNames = fs | ||||||
|         .readdirSync(processRoot) |         .readdirSync(processRoot) | ||||||
|         .filter(filename => filename.toLowerCase() === 'nuget.config'); |         .filter(filename => filename.toLowerCase() === defaultConfigName); | ||||||
|     if (configFileNames.length) { |     if (configFileNames.length) { | ||||||
|         return configFileNames[0]; |         return configFileNames[0]; | ||||||
|     } |     } | ||||||
|     return 'nuget.config'; |     return defaultConfigName; | ||||||
| } | } | ||||||
| function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) { | function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) { | ||||||
|     console.log(`dotnet-auth: Finding any source references in ${existingFileLocation}, writing a new temporary configuration file with credentials to ${tempFileLocation}`); |     console.log(`dotnet-auth: Finding any source references in ${existingFileLocation}, writing a new temporary configuration file with credentials to ${tempFileLocation}`); | ||||||
|  | |||||||
| @ -28,13 +28,14 @@ export function configAuthentication( | |||||||
| } | } | ||||||
|  |  | ||||||
| function getExistingNugetConfig(processRoot: string) { | function getExistingNugetConfig(processRoot: string) { | ||||||
|  |   const defaultConfigName = 'nuget.config'; | ||||||
|   const configFileNames = fs |   const configFileNames = fs | ||||||
|     .readdirSync(processRoot) |     .readdirSync(processRoot) | ||||||
|     .filter(filename => filename.toLowerCase() === 'nuget.config'); |     .filter(filename => filename.toLowerCase() === defaultConfigName); | ||||||
|   if (configFileNames.length) { |   if (configFileNames.length) { | ||||||
|     return configFileNames[0]; |     return configFileNames[0]; | ||||||
|   } |   } | ||||||
|   return 'nuget.config'; |   return defaultConfigName; | ||||||
| } | } | ||||||
|  |  | ||||||
| function writeFeedToFile( | function writeFeedToFile( | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Vladimir Safonkin
					Vladimir Safonkin