A GitHub Action that downloads and sets up Lefthook on the runner.
- name: Setup Lefthook
uses: threeal/setup-lefthook-action@v1.0.0| Name | Description | Default |
|---|---|---|
version |
The Lefthook version to install, or latest for the newest release. |
latest |
| Name | Description |
|---|---|
version |
The version of Lefthook that was installed. |
- 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-filesThis project is licensed under the MIT License.
Copyright © 2026 Alfi Maulana