From cba139c26962c4fc48ce09e6c67ee6ba9af932c0 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Tue, 19 May 2026 17:01:42 +0200 Subject: [PATCH] feat(actions/checkout): add support for sparse-checkout input Signed-off-by: Emilien Escalle --- actions/checkout/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/actions/checkout/action.yml b/actions/checkout/action.yml index 939785b..d0590b6 100644 --- a/actions/checkout/action.yml +++ b/actions/checkout/action.yml @@ -18,6 +18,10 @@ inputs: Whether to download Git-LFS files. See https://github.com/actions/checkout#usage default: "false" + sparse-checkout: + description: | + Whether to enable sparse checkout and the list of files or directories to include in the checkout. + See https://github.com/actions/checkout#usage persist-credentials: description: | Whether to persist the token credentials in the Git config. @@ -55,6 +59,7 @@ runs: with: fetch-depth: ${{ inputs.fetch-depth }} lfs: ${{ inputs.lfs }} + sparse-checkout: ${{ inputs.sparse-checkout }} token: ${{ inputs.token || github.token }} persist-credentials: true @@ -63,5 +68,6 @@ runs: with: fetch-depth: ${{ inputs.fetch-depth }} lfs: ${{ inputs.lfs }} + sparse-checkout: ${{ inputs.sparse-checkout }} token: ${{ inputs.token || github.token }} persist-credentials: false