https://github.com/scribd/checkout-file-action
Checkout individual files from a repo
https://github.com/scribd/checkout-file-action
actions
Last synced: 3 months ago
JSON representation
Checkout individual files from a repo
- Host: GitHub
- URL: https://github.com/scribd/checkout-file-action
- Owner: scribd
- License: mit
- Created: 2020-08-20T20:46:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-01T22:44:27.000Z (about 1 year ago)
- Last Synced: 2024-10-07T09:21:09.355Z (8 months ago)
- Topics: actions
- Language: JavaScript
- Homepage:
- Size: 529 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```yaml
uses: scribd/checkout-file-action@v3
with:
file-path: |
action.yml
tests/hello-world.txt
```More examples [here](https://github.com/scribd/checkout-file-action/blob/master/.github/workflows/test.yml).