Warning
This action is deprecated.
Please migrate to the official actions/checkout action, which supports sparse checkout natively.
- uses: actions/checkout@v6
with:
ref: dev
sparse-checkout: |
dir-A/
dir-B/
file-A
file-B
sparse-checkout-cone-mode: trueThis action is a compatibility wrapper for actions/checkout sparse checkout support.
It keeps the existing checkout-sparse inputs for migration purposes while delegating checkout behavior to the official actions/checkout action.
Required The git ref. Could be either branch name or git tag. Default "dev".
Examples of supported refs:
-
dev -
refs/heads/dev -
v1.2.3 -
refs/tags/v1.2.3
Required The list of files/directories to checkout separated by space. Default "".
The GitHub personal access token. Default is secrets.GITHUB_TOKEN.
uses: bolteu/checkout-sparse@main
with:
ref: dev
files: dir-A/ dir-B/ file-A file-B
github-token: $GITHUB_TOKEN