mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-10-31 21:12:29 +00:00 
			
		
		
		
	Add Ref and Commit outputs (#1180)
Signed-off-by: Luca Comellini <luca.com@gmail.com>
This commit is contained in:
		
							parent
							
								
									2d7d9f7ff5
								
							
						
					
					
						commit
						b684943689
					
				
					 5 changed files with 45 additions and 2 deletions
				
			
		|  | @ -261,7 +261,8 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> { | |||
|     const commitInfo = await git.log1() | ||||
| 
 | ||||
|     // Log commit sha
 | ||||
|     await git.log1("--format='%H'") | ||||
|     const commitSHA = await git.log1('--format=%H') | ||||
|     core.setOutput('commit', commitSHA.trim()) | ||||
| 
 | ||||
|     // Check for incorrect pull request merge commit
 | ||||
|     await refHelper.checkCommitInfo( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue