fields-education/Smart Checkout

Checkout with automatic fetch-depth calculation based on commits since last release. Wraps actions/checkout with all the same inputs, plus smart depth calculation.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
fetch-depthOverride fetch depth. Use 'auto' to calculate from last release (default), '0' for full clone, or a specific number. noauto
repositoryRepository name with owner (e.g., actions/checkout)${{ github.repository }}
refThe branch, tag or SHA to checkout""
tokenPAT or GITHUB_TOKEN for fetching the repository${{ github.token }}
ssh-keySSH key for fetching the repository""
ssh-known-hostsKnown hosts in addition to the user and global host key database""
ssh-strictWhether to perform strict host key checkingtrue
ssh-userThe user to use when connecting to the remote SSH hostgit
persist-credentialsWhether to configure the token or SSH key with the local git configtrue
pathRelative path under $GITHUB_WORKSPACE to place the repository""
cleanWhether to execute git clean -ffdx && git reset --hard HEAD before fetchingtrue
filterPartially clone against a given filter (overrides sparse-checkout if set)""
sparse-checkoutDo a sparse checkout on given patterns (newline separated)""
sparse-checkout-cone-modeWhether to use cone-mode when doing a sparse checkouttrue
fetch-tagsWhether to fetch tags, even if fetch-depth > 0true
show-progressWhether to show progress status output when fetchingtrue
lfsWhether to download Git-LFS filesfalse
submodulesWhether to checkout submodules (true, false, or recursive)false
set-safe-directoryAdd repository path as safe.directory for Git global configtrue
github-server-urlThe base URL for the GitHub instance to clone from""
namedescription
fetch-depthThe fetch depth that was used
commits-since-releaseNumber of commits since last release (empty if no release)
last-release-tagThe last release tag used for calculation (empty if none)
refThe branch, tag or SHA that was checked out
commitThe commit SHA that was checked out