Skip to content

Commit 2d44fec

Browse files
committed
feat(actions/checkout): add support for sparse-checkout input
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent b485212 commit 2d44fec

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

actions/checkout/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ inputs:
1818
Whether to download Git-LFS files.
1919
See https://github.com/actions/checkout#usage
2020
default: "false"
21+
sparse-checkout:
22+
description: |
23+
Whether to enable sparse checkout and the list of files or directories to include in the checkout.
24+
See https://github.com/actions/checkout#usage
2125
persist-credentials:
2226
description: |
2327
Whether to persist the token credentials in the Git config.
@@ -55,6 +59,7 @@ runs:
5559
with:
5660
fetch-depth: ${{ inputs.fetch-depth }}
5761
lfs: ${{ inputs.lfs }}
62+
sparse-checkout: ${{ inputs.sparse-checkout }}
5863
token: ${{ inputs.token || github.token }}
5964
persist-credentials: true
6065

@@ -63,5 +68,6 @@ runs:
6368
with:
6469
fetch-depth: ${{ inputs.fetch-depth }}
6570
lfs: ${{ inputs.lfs }}
71+
sparse-checkout: ${{ inputs.sparse-checkout }}
6672
token: ${{ inputs.token || github.token }}
6773
persist-credentials: false

0 commit comments

Comments
 (0)