mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 05:25:55 +08:00 
			
		
		
		
	update default branch (#305)
This commit is contained in:
		| @@ -63,7 +63,7 @@ export function getInputs(): IGitSourceSettings { | ||||
|       result.commit = github.context.sha | ||||
|  | ||||
|       // Some events have an unqualifed ref. For example when a PR is merged (pull_request closed event), | ||||
|       // the ref is unqualifed like "master" instead of "refs/heads/master". | ||||
|       // the ref is unqualifed like "main" instead of "refs/heads/main". | ||||
|       if (result.commit && result.ref && !result.ref.startsWith('refs/')) { | ||||
|         result.ref = `refs/heads/${result.ref}` | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user