mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-10-31 13:02:28 +00:00 
			
		
		
		
	Apply suggestions from code review
Co-authored-by: Usman <akeju00+github@gmail.com>
This commit is contained in:
		
							parent
							
								
									d48599a299
								
							
						
					
					
						commit
						f787e7d544
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -219,10 +219,10 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> { | ||||||
|     ) |     ) | ||||||
| 
 | 
 | ||||||
|     // Set default author
 |     // Set default author
 | ||||||
|     if (!await git.configExists('user.name', true) { |     if (!await git.configExists('user.name', true)) { | ||||||
|       await git.config('user.name', github.context.workflow, true) |       await git.config('user.name', github.context.workflow, true) | ||||||
|     } |     } | ||||||
|     if (!await git.configExists('user.email', true) { |     if (!await git.configExists('user.email', true)) { | ||||||
|       await git.config('user.email', 'github-actions@github.com', true) |       await git.config('user.email', 'github-actions@github.com', true) | ||||||
|     } |     } | ||||||
|   } finally { |   } finally { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue