helm-charts/.github/workflows/pre-commit-check.yaml
bjw-s-bot[bot] 35356648e5
ci(github-action)!: Update actions/checkout action to v4 (#170)
Co-authored-by: bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>
2023-09-04 20:06:55 +02:00

23 lines
607 B
YAML

name: "Pre-commit consistency check"
on:
workflow_call:
inputs:
modifiedFiles:
description: >
A JSON encoded array of files to check
required: true
type: string
jobs:
pre-commit-check:
name: Run pre-commit checks
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Run against changes
uses: pre-commit/action@v3.0.0
with:
extra_args: --files ${{ join(fromJson(inputs.modifiedFiles), ' ') }} --config .ci/pre-commit/config.yaml