helm-charts/.github/workflows/pre-commit-check.yaml
bjw-s-bot[bot] a933c4146c
ci(github-action): update actions/checkout digest to b4ffde6 (#210)
Co-authored-by: bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>
2023-10-17 16:05:20 +00: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@b4ffde65f46336ab88eb53be808477a3936bae11 # 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