This action checks out individual files from a repo.
Required The file(s) to checkout.
The GitHub token to use. Only necessary if retrieving files from a different private repository.
The GitHub repository to retrieve the file from. Defaults to the current repository.
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.
uses: scribd/checkout-file-action@v3
with:
file-path: |
action.yml
tests/hello-world.txt
More examples here.