mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-11-03 22:29:11 +00:00 
			
		
		
		
	Merge b9de40a228 into 8edcb1bdb4
				
					
				
			This commit is contained in:
		
						commit
						c66bc1e9da
					
				
					 9 changed files with 81 additions and 8 deletions
				
			
		
							
								
								
									
										14
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -144,6 +144,11 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
 | 
			
		|||
    # running from unless specified. Example URLs are https://github.com or
 | 
			
		||||
    # https://my-ghes-server.example.com
 | 
			
		||||
    github-server-url: ''
 | 
			
		||||
 | 
			
		||||
    # Use the given object format when creating local repository. Specifically, use
 | 
			
		||||
    # 'sha256' to checkout a SHA-256 repository.
 | 
			
		||||
    # Default: null
 | 
			
		||||
    object-format: ''
 | 
			
		||||
```
 | 
			
		||||
<!-- end usage -->
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -162,6 +167,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
 | 
			
		|||
- [Checkout pull request on closed event](#Checkout-pull-request-on-closed-event)
 | 
			
		||||
- [Push a commit using the built-in token](#Push-a-commit-using-the-built-in-token)
 | 
			
		||||
- [Push a commit to a PR using the built-in token](#Push-a-commit-to-a-PR-using-the-built-in-token)
 | 
			
		||||
- [Checkout SHA-256 repository](#checkout-sha-256-repository)
 | 
			
		||||
 | 
			
		||||
## Fetch only the root files
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -341,6 +347,14 @@ permissions:
 | 
			
		|||
  contents: read
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Checkout SHA-256 repository
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
- uses: actions/checkout@v4
 | 
			
		||||
  with:
 | 
			
		||||
    object-format: sha256
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# License
 | 
			
		||||
 | 
			
		||||
The scripts and documentation in this project are released under the [MIT License](LICENSE)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue