Skip to content
git-branch

GitHub Action

checkout-dirs

v1 Latest version

checkout-dirs

git-branch

checkout-dirs

Checkout specific directories

Installation

Copy and paste the following snippet into your .yml file.

              

- name: checkout-dirs

uses: sergeidyga/checkout-dirs@v1

Learn more about this action in sergeidyga/checkout-dirs

Choose a version

checkout-dirs action

Minimalistic GitHub Action to checkout specific directories (instead of the whole repo).

Usage

  - uses: sergeidyga/checkout-dirs@v1
    with:
      # Space-separated directories to checkout
      # [required]
      dirs: 'dir1 dir2'
      # Repository name
      # [optional] defaults to ${{ github.repository }}
      repository: ''
      # Ref to checkout
      # [optional] defaults to ${{ github.ref_name }}
      ref: ''