Skip to content

This action is a wrapper for `git sparse-checkout` command

Notifications You must be signed in to change notification settings

bolteu/checkout-sparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkout-sparse action

This action is a wrapper for git sparse-checkout command

Inputs

ref

Required The git ref. Could be either branch name or git tag. Default "dev".

Examples of supported refs:

  • dev

  • refs/heads/dev

  • v1.2.3

  • refs/tags/v1.2.3

files

Required The list of files/directories to checkout separated by space. Default "".

github-token

The GitHub personal access token. Default is secrets.GITHUB_TOKEN.

Example usage

uses: bolteu/checkout-sparse@main
with:
  ref: dev
  files: dir-A/ dir-B/ file-A file-B
  github-token: $GITHUB_TOKEN