Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
download

GitHub Action

checkout-files

v1

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@v1

Learn more about this action in Bhacaz/checkout-files

Choose a version

checkout-files

Github Action to checkout only certain files or folders. Useful if only need certain file, like config or assets for your workflow, instead of pulling all the repo.

Inputs

files

A list of files with the path relative to the $GITHUB_WORKSPACE.

- use: Bhacaz/checkout-files
  with:
    files: Gemfile Gemfile.lock .ruby-version config

token

A Github Private Access Token.

- use: Bhacaz/checkout-files
  with:
    token: ${{ secrets.token }}