charts/.github/workflows/pre-commit-check.yaml
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs a101402e74
ci: Restructure PR validation
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
2022-02-03 19:42:20 +01:00

22 lines
436 B
YAML

name: "Pre-commit consistency check"
on:
workflow_call:
inputs:
modifiedFiles:
required: true
type: string
jobs:
pre-commit-check:
name: Run pre-commit checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run against changes
uses: pre-commit/action@v2.0.3
with:
extra_args: --files ${{ inputs.modifiedFiles }}