mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-11-04 06:39:11 +00:00 
			
		
		
		
	Undo head.ref to head.sha change
That'd actually introduce a potential race condition.
This commit is contained in:
		
							parent
							
								
									2b2b6d210d
								
							
						
					
					
						commit
						89616df839
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -265,12 +265,12 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
 | 
			
		|||
> - `${{ github.token }}` is scoped to the current repository, so if you want to checkout a different repository that is private you will need to provide your own [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Checkout pull request HEAD instead of merge commit
 | 
			
		||||
## Checkout pull request HEAD commit instead of merge commit
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
- uses: actions/checkout@v4
 | 
			
		||||
  with:
 | 
			
		||||
    ref: ${{ github.event.pull_request.head.ref }}
 | 
			
		||||
    ref: ${{ github.event.pull_request.head.sha }}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Checkout pull request on closed event
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue