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:
		
							
								
								
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -4840,7 +4840,7 @@ const github = __importStar(__webpack_require__(469)); | |||||||
| const xmlbuilder = __importStar(__webpack_require__(312)); | const xmlbuilder = __importStar(__webpack_require__(312)); | ||||||
| const xmlParser = __importStar(__webpack_require__(989)); | const xmlParser = __importStar(__webpack_require__(989)); | ||||||
| function configAuthentication(feedUrl, existingFileLocation = '', processRoot = process.cwd()) { | function configAuthentication(feedUrl, existingFileLocation = '', processRoot = process.cwd()) { | ||||||
|     const existingNuGetConfig = path.resolve(processRoot, existingFileLocation == '' |     const existingNuGetConfig = path.resolve(processRoot, existingFileLocation === '' | ||||||
|         ? getExistingNugetConfig(processRoot) |         ? getExistingNugetConfig(processRoot) | ||||||
|         : existingFileLocation); |         : existingFileLocation); | ||||||
|     const tempNuGetConfig = path.resolve(processRoot, '../', 'nuget.config'); |     const tempNuGetConfig = path.resolve(processRoot, '../', 'nuget.config'); | ||||||
| @ -4850,7 +4850,7 @@ exports.configAuthentication = configAuthentication; | |||||||
| function getExistingNugetConfig(processRoot) { | function getExistingNugetConfig(processRoot) { | ||||||
|     const configFileNames = fs |     const configFileNames = fs | ||||||
|         .readdirSync(processRoot) |         .readdirSync(processRoot) | ||||||
|         .filter(filename => filename.toLowerCase() == 'nuget.config'); |         .filter(filename => filename.toLowerCase() === 'nuget.config'); | ||||||
|     if (configFileNames.length) { |     if (configFileNames.length) { | ||||||
|         return configFileNames[0]; |         return configFileNames[0]; | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ export function configAuthentication( | |||||||
| ) { | ) { | ||||||
|   const existingNuGetConfig: string = path.resolve( |   const existingNuGetConfig: string = path.resolve( | ||||||
|     processRoot, |     processRoot, | ||||||
|     existingFileLocation == '' |     existingFileLocation === '' | ||||||
|       ? getExistingNugetConfig(processRoot) |       ? getExistingNugetConfig(processRoot) | ||||||
|       : existingFileLocation |       : existingFileLocation | ||||||
|   ); |   ); | ||||||
| @ -30,7 +30,7 @@ export function configAuthentication( | |||||||
| function getExistingNugetConfig(processRoot: string) { | function getExistingNugetConfig(processRoot: string) { | ||||||
|   const configFileNames = fs |   const configFileNames = fs | ||||||
|     .readdirSync(processRoot) |     .readdirSync(processRoot) | ||||||
|     .filter(filename => filename.toLowerCase() == 'nuget.config'); |     .filter(filename => filename.toLowerCase() === 'nuget.config'); | ||||||
|   if (configFileNames.length) { |   if (configFileNames.length) { | ||||||
|     return configFileNames[0]; |     return configFileNames[0]; | ||||||
|   } |   } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Vladimir Safonkin
					Vladimir Safonkin