This action is a wrapper for git sparse-checkout
command
Required The git ref. Could be either branch name or git tag. Default "dev"
.
Examples of supported ref
s:
-
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