cnily03/Checkout
Checkout a Git repository at a particular version
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Repository name with owner, or the URL. | no | ${{ github.repository }} |
| fetch-depth | Number of commits to fetch. 0 indicates all history for all branches and tags. | no | 1 |
| branch | Branch name. | no | "" |
| path | The repository path to clone to. | no | "" |
| token | Personal access token (PAT) used to fetch the repository. [See here](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets). | no | ${{ github.token }} |
| set-user | Set the user.name and user.email in the checked-out repository. | no | "" |
| cwd | The working directory to run commands in. | no | "" |
| auto-create-cwd | Automatically create the working directory if it does not exist. | no | false |
Outputs
| name | description |
|---|---|
| repository_path | The path of the repository that was checked out. |
| repository_name | The name of the repository that was checked out. |
| ref | The reference fetched. |
| sha | The commit SHA that was checked out. |
| branch | The branch that was checked out. |