fix: fix Bitbucket authenticated URL
This commit is contained in:
		
							parent
							
								
									a52f258fa4
								
							
						
					
					
						commit
						e88ac6300c
					
				| @ -44,7 +44,7 @@ module.exports = async ({repositoryUrl, branch}) => { | |||||||
|     const protocol = protocols.includes('https') ? 'https' : protocols.includes('http') ? 'http' : 'https'; |     const protocol = protocols.includes('https') ? 'https' : protocols.includes('http') ? 'http' : 'https'; | ||||||
| 
 | 
 | ||||||
|     // If credentials are set via anvironment variables, convert the URL to http/https and add basic auth, otherwise return `repositoryUrl` as is
 |     // If credentials are set via anvironment variables, convert the URL to http/https and add basic auth, otherwise return `repositoryUrl` as is
 | ||||||
|     return gitCredentials ? {...parsed, ...{token: gitCredentials}}.toString(protocol) : repositoryUrl; |     return gitCredentials ? {...parsed, protocols: [protocol], user: gitCredentials}.toString(protocol) : repositoryUrl; | ||||||
|   } |   } | ||||||
|   return repositoryUrl; |   return repositoryUrl; | ||||||
| }; | }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user