Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pasqualesalza/smart-checkout-action
https://github.com/pasqualesalza/smart-checkout-action
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pasqualesalza/smart-checkout-action
- Owner: pasqualesalza
- Created: 2024-12-09T13:32:44.000Z (14 days ago)
- Default Branch: main
- Last Pushed: 2024-12-10T13:45:05.000Z (13 days ago)
- Last Synced: 2024-12-10T14:22:14.326Z (13 days ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart Checkout Action
This GitHub Action calculates and fetches the minimum commits for head and base branches to ensure the merge base commit is included. It supports both regular and LFS (Large File Storage) caching.
## Inputs
- `base-branch` (required): The base branch name.
- `head-branch` (required): The head branch name. Defaults to the current head reference.
- `head-only` (required): Whether to only checkout the head branch. Defaults to `false`.
- `head-only-fetch-depth` (optional): The fetch depth for the head branch when only checking out the head branch. Defaults to `1`.
- `lfs` (required): Whether to use LFS caching. Defaults to `false`.
- `lfs-token` (optional): The GitHub token to use for LFS. Required if pushing in other steps. Defaults to the GitHub token.## Outputs
This action does not produce any direct outputs.
## Example Usage
```yaml
- uses: pasqualesalza/smart-checkout-action@v1
```