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
.token
(optional): The PAT GitHub token. Required to run authenticated git commands in other steps. Defaults to${{ github.token }}
.
This action does not produce any direct outputs.
- uses: kaiko-ai/smart-checkout-action@v1