GitHunt
MA

makers99/checkout-files

Github Action checkout only certain files

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.
You can also specify a folder and the action will recessively pull all the files.

- name: Check out configuration
  uses: Bhacaz/checkout-files@v1
  with:
    files: Gemfile Gemfile.lock .ruby-version config
    token: ${{ github.token }}

token

A Github Private Access Token.

- uses: Bhacaz/checkout-files@v1
  with:
    token: ${{ secrets.token }}

branch

Checkout the files from a specific branch instead of master.

- uses: Bhacaz/checkout-files
  with:
    branch: ${{ github.event.inputs.branch }}

Languages

JavaScript100.0%

Contributors

MIT License
Created October 28, 2021
Updated October 29, 2021