pasqualesalza/Smart Checkout Action

Perform an optimized checkout a repository. In case of checkout-type=branch, it will calculate and fetch the minimum commits for head and base refs to ensure the merge base commit is included. In case of checkout-type=commit, it will checkout the specific commit SHA on the main branch, guaranteeing HEAD is pointing to the commit.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
checkout-typeThe type of the checkout. Either "branch" or "commit"yesbranch
base-branchThe base branch name. Required if checkout-type=branchyesmain
head-branchThe head branch name. Required if checkout-type=branchyes${{ github.head_ref || github.ref_name }}
commitThe commit SHA to checkout. Required if checkout-type=commitno${{ github.sha }}
main-branchThe main branch name. Required if checkout-type=commitnomain
lfsWhether to use LFS cachingyesfalse
tokenThe PAT GitHub token. Required to run authenticated git commands in other stepsno${{ github.token }}

no outputs