Skip to content

kaiko-ai/smart-checkout-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Smart Checkout Action

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.

Inputs

  • checkout-type (required): The type of the checkout. Either "branch" or "sha". Defaults to branch.
  • base-branch (required): The base branch name. Required if checkout-type=branch. Defaults to main.
  • head-branch (required): The head branch name. Required if checkout-type=branch. Defaults to the current head reference.
  • commit (optional): The commit SHA to checkout. Required if checkout-type=commit. Defaults to the current commit SHA.
  • main-branch (optional): The main branch name. Required if checkout-type=commit. Defaults to main.
  • lfs (required): Whether to use LFS caching. Defaults to false.
  • token (optional): The PAT GitHub token. Required to run authenticated git commands in other steps. Defaults to ${{ github.token }}.

Outputs

This action does not produce any direct outputs.

Example Usage

- uses: kaiko-ai/smart-checkout-action@v1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published