Skip to content
download

GitHub Action

checkout-files

v2 Latest version

checkout-files

download

checkout-files

Checkout only certain files

Installation

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

              

- name: checkout-files

uses: Bhacaz/checkout-files@v2

Learn more about this action in Bhacaz/checkout-files

Choose a version

checkout-files

GitHub Action to checkout only certain files and/or folders. Useful if only need certain files, like config or assets for your workflow, instead of pulling the whole repo.

Usage

Minimal setup.

- name: Checkout files
  uses: Bhacaz/checkout-files@v2
  with:
   files: package.json

Inputs

Name Description Required Default
files A list of files with the path separated by a space, relative to root of your repository. Can also be a folder and the action will recursively pull all the files. true N/A
token A GitHub token. false ${{ github.token }}
branch Checkout files from a specific branch. If none specified, it will use the default branch of the repository. false N/A