Manifest: run-prek/action.yml
This action sets up the prek tool, and additional tools required for various hooks. It then runs prek against the changed files. This actions expects checkouts with depth 0. It does the following work:
- Installs prek in the specified version.
- Optionally sets up the Rust toolchain, Hadolint, and Nix.
- Runs prek on changed files.
Example usage (workflow):
---
name: prek
on:
pull_request:
jobs:
prek:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout
with:
fetch-depth: 0
submodules: recursive
- uses: stackabletech/actions/run-prekTip
For descriptions of the inputs and outputs, see the complete run-prek action.
prek-version(defaults tolatest)rust(eg:1.80.1. Disabled if not specified)rust-components(defaults torustfmt,clippy)hadolint(eg:v2.12.0. Disabled if not specified)nix(eg:2.25.2. Disabled if not specified)nix-github-token(eg:secrets.GITHUB_TOKEN. Required whennixis set)
None