mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 08:46:37 +07:00 
			
		
		
		
	in input-helper, make ref fallback to commit if the commit was provided but not ref
Signed-off-by: James Bradlee <james.bradlee@telenor.no>
This commit is contained in:
		@ -58,7 +58,7 @@ export async function getInputs(): Promise<IGitSourceSettings> {
 | 
			
		||||
 | 
			
		||||
  // Source branch, source version
 | 
			
		||||
  result.commit = core.getInput('commit')
 | 
			
		||||
  result.ref = core.getInput('ref')
 | 
			
		||||
  result.ref = core.getInput('ref') ?? result.commit
 | 
			
		||||
  if (!result.ref) {
 | 
			
		||||
    if (isWorkflowRepository) {
 | 
			
		||||
      result.ref = github.context.ref
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user