1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-03-31 05:20:06 +02:00

updated docs to specify override

This commit is contained in:
Finley Garton 2023-09-08 17:20:25 +01:00
parent edb1935aaa
commit 26d0448659
No known key found for this signature in database
GPG key ID: 8D1E50A9A9B1C522
3 changed files with 23 additions and 17 deletions

View file

@ -81,7 +81,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

View file

@ -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

View file

@ -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: >