This GitHub Action calculates and fetches the minimum commits for head and base branches to ensure the merge base commit is included. It supports both regular and LFS (Large File Storage) caching.
checkout-type
(required): The type of the checkout. Either "branch" or "sha". Defaults tobranch
.base-branch
(required): The base branch name. Required ifcheckout-type=branch
. Defaults tomain
.head-branch
(required): The head branch name. Required ifcheckout-type=branch
. Defaults to the current head reference.commit
(optional): The commit SHA to checkout. Required ifcheckout-type=commit
. Defaults to the current commit SHA.main-branch
(optional): The main branch name. Required ifcheckout-type=commit
. Defaults tomain
.lfs
(required): Whether to use LFS caching. Defaults tofalse
.lfs-token
(optional): The GitHub token to use for LFS. Required if pushing in other steps. Defaults to the GitHub token.
This action does not produce any direct outputs.
- uses: pasqualesalza/smart-checkout-action@v1