encore-mieux/Sparse Checkout
Sparse checkout a git repository, especially to speedup mono-repositories clone time
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jun 20, 2023
- License
- MIT
Pinned Snippet
uses: encore-mieux/sparse-checkout@5b2844421d827b2fd5e629020dcd4a08d18e3a09 # v0.4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| patterns | Git sparse checkout patterns. [Learn more by reading git documentation](https://git-scm.com/docs/git-sparse-checkout#Documentation/git-sparse-checkout.txt-emsetem) | yes | * |
| token | Personal access token (PAT) used to fetch the repository. The PAT is configured with the local git config, which enables your scripts to run authenticated git commands. The post-job step removes the PAT. We recommend using a service account with the least permissions necessary. Also when generating a new PAT, select the least scopes necessary. [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) | yes | ${{ github.token }} |
| branch | The branch you want to check out | yes | ${{ github.ref }} |
| sha | The sha1 of the head commit of the branch you want to check out | yes | ${{ github.sha }} |
Outputs
no outputs