mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-01 02:28:40 +08:00 
			
		
		
		
	updated docs to specify override
This commit is contained in:
		
							parent
							
								
									edb1935aaa
								
							
						
					
					
						commit
						26d0448659
					
				
							
								
								
									
										1
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							|  | @ -82,7 +82,6 @@ jobs: | ||||||
|       - name: Verify fetch filter |       - name: Verify fetch filter | ||||||
|         run: __test__/verify-fetch-filter.sh |         run: __test__/verify-fetch-filter.sh | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|       # Sparse checkout |       # Sparse checkout | ||||||
|       - name: Sparse checkout |       - name: Sparse checkout | ||||||
|         uses: ./ |         uses: ./ | ||||||
|  |  | ||||||
							
								
								
									
										33
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										33
									
								
								README.md
									
									
									
									
									
								
							|  | @ -75,12 +75,12 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl | ||||||
|     # Default: true |     # Default: true | ||||||
|     clean: '' |     clean: '' | ||||||
| 
 | 
 | ||||||
|     # Partially clone against a given filter. |     # Partially clone against a given filter. Overrides sparse-checkout if set. | ||||||
|     # Default: null |     # Default: null | ||||||
|     filter: '' |     filter: '' | ||||||
| 
 | 
 | ||||||
|     # Do a sparse checkout on given patterns. Each pattern should be separated with |     # Do a sparse checkout on given patterns. Each pattern should be separated with | ||||||
|     # new lines |     # new lines. | ||||||
|     # Default: null |     # Default: null | ||||||
|     sparse-checkout: '' |     sparse-checkout: '' | ||||||
| 
 | 
 | ||||||
|  | @ -128,18 +128,23 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl | ||||||
| 
 | 
 | ||||||
| # Scenarios | # Scenarios | ||||||
| 
 | 
 | ||||||
| - [Fetch only the root files](#Fetch-only-the-root-files) | - [Checkout V4](#checkout-v4) | ||||||
| - [Fetch only the root files and `.github` and `src` folder](#Fetch-only-the-root-files-and-github-and-src-folder) | - [What's new](#whats-new) | ||||||
| - [Fetch only a single file](#Fetch-only-a-single-file) | - [Usage](#usage) | ||||||
| - [Fetch all history for all tags and branches](#Fetch-all-history-for-all-tags-and-branches) | - [Scenarios](#scenarios) | ||||||
| - [Checkout a different branch](#Checkout-a-different-branch) |   - [Fetch only the root files](#fetch-only-the-root-files) | ||||||
| - [Checkout HEAD^](#Checkout-HEAD) |   - [Fetch only the root files and `.github` and `src` folder](#fetch-only-the-root-files-and-github-and-src-folder) | ||||||
| - [Checkout multiple repos (side by side)](#Checkout-multiple-repos-side-by-side) |   - [Fetch only a single file](#fetch-only-a-single-file) | ||||||
| - [Checkout multiple repos (nested)](#Checkout-multiple-repos-nested) |   - [Fetch all history for all tags and branches](#fetch-all-history-for-all-tags-and-branches) | ||||||
| - [Checkout multiple repos (private)](#Checkout-multiple-repos-private) |   - [Checkout a different branch](#checkout-a-different-branch) | ||||||
| - [Checkout pull request HEAD commit instead of merge commit](#Checkout-pull-request-HEAD-commit-instead-of-merge-commit) |   - [Checkout HEAD^](#checkout-head) | ||||||
| - [Checkout pull request on closed event](#Checkout-pull-request-on-closed-event) |   - [Checkout multiple repos (side by side)](#checkout-multiple-repos-side-by-side) | ||||||
| - [Push a commit using the built-in token](#Push-a-commit-using-the-built-in-token) |   - [Checkout multiple repos (nested)](#checkout-multiple-repos-nested) | ||||||
|  |   - [Checkout multiple repos (private)](#checkout-multiple-repos-private) | ||||||
|  |   - [Checkout pull request HEAD commit instead of merge commit](#checkout-pull-request-head-commit-instead-of-merge-commit) | ||||||
|  |   - [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) | ||||||
|  | - [License](#license) | ||||||
| 
 | 
 | ||||||
| ## Fetch only the root files | ## Fetch only the root files | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -54,12 +54,14 @@ inputs: | ||||||
|     description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching' |     description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching' | ||||||
|     default: true |     default: true | ||||||
|   filter: |   filter: | ||||||
|     description: 'Partially clone against a given filter.' |     description: > | ||||||
|  |       Partially clone against a given filter. | ||||||
|  |       Overrides sparse-checkout if set. | ||||||
|     default: null |     default: null | ||||||
|   sparse-checkout: |   sparse-checkout: | ||||||
|     description: > |     description: > | ||||||
|       Do a sparse checkout on given patterns. |       Do a sparse checkout on given patterns. | ||||||
|       Each pattern should be separated with new lines |       Each pattern should be separated with new lines. | ||||||
|     default: null |     default: null | ||||||
|   sparse-checkout-cone-mode: |   sparse-checkout-cone-mode: | ||||||
|     description: > |     description: > | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Finley Garton
						Finley Garton