https://github.com/threeal/setup-lefthook-action
Set up Lefthook in GitHub Actions
https://github.com/threeal/setup-lefthook-action
Last synced: 27 days ago
JSON representation
Set up Lefthook in GitHub Actions
- Host: GitHub
- URL: https://github.com/threeal/setup-lefthook-action
- Owner: threeal
- License: mit
- Created: 2026-05-21T14:15:39.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-31T07:11:18.000Z (about 1 month ago)
- Last Synced: 2026-05-31T09:10:18.635Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup Lefthook Action
A GitHub Action that downloads and sets up [Lefthook](https://lefthook.dev/) on the runner.
## Usage
```yaml
- name: Setup Lefthook
uses: threeal/setup-lefthook-action@v1.0.0
```
## Inputs
| Name | Description | Default |
| --------- | ----------------------------------- | -------------- |
| `version` | The version of Lefthook to install. | Latest version |
## Outputs
| Name | Description |
| --------- | ------------------------------------------- |
| `version` | The version of Lefthook that was installed. |
## Example
```yaml
- name: Setup Lefthook
uses: threeal/setup-lefthook-action@v1.0.0
with:
version: 2.1.0
- name: Run pre-commit hooks
run: lefthook run pre-commit --all-files
```
## License
This project is licensed under the [MIT License](LICENSE).
Copyright © 2026 [Alfi Maulana](https://github.com/threeal)