Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 623 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 623 Bytes

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