Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 806 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 806 Bytes

Checkout File Action

This action checks out individual files from a repo.

Inputs

file-path

Required The file(s) to checkout.

github-token

The GitHub token to use. Only necessary if retrieving files from a different private repository.

repo

The GitHub repository to retrieve the file from. Defaults to the current repository.

branch

The branch to pull the file from. Defaults to the current branch if checking out a file from the current repository, otherwise defaults to the main branch of the repository being checked out.

Example usage

uses: scribd/checkout-file-action@v3
with:
  file-path: |
    action.yml
    tests/hello-world.txt

More examples here.