j178/prek-action
Run pre-commit hooks using prek
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| extra-args | Extra options to pass to `prek run`, appended after `--show-diff-on-failure --color=always` | no | --all-files |
| extra_args | Options to pass to `prek run` (deprecated, use extra-args) | no | — |
| cache | Whether to cache the prek environment between workflow runs | no | true |
| install-only | Only install prek, do not run it | no | false |
| prek-version | Version or semver range of prek to install (for example `0.2.1`, `0.3.x`, `<=1.0.0`, or `latest`) | no | latest |
| show-verbose-logs | Whether to print the prek verbose log after `prek run` | no | true |
| working-directory | The working directory to run prek in | no | . |
| token | Unused; retained for backward compatibility | no | "" |
Outputs
| name | description |
|---|---|
| prek-version | The version of prek that was installed |
| cache-hit | Whether the prek environment cache was an exact match |