2021-05-01 11:27:23 +00:00
|
|
|
name: "Pre-commit consistency check"
|
|
|
|
|
|
|
|
on:
|
2022-02-03 18:39:40 +00:00
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
modifiedFiles:
|
|
|
|
required: true
|
|
|
|
type: string
|
2021-06-11 17:56:14 +00:00
|
|
|
|
2021-05-01 11:27:23 +00:00
|
|
|
jobs:
|
|
|
|
pre-commit-check:
|
|
|
|
name: Run pre-commit checks
|
2022-02-03 18:39:40 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-01 11:27:23 +00:00
|
|
|
steps:
|
2022-02-03 18:39:40 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-05-01 11:27:23 +00:00
|
|
|
|
2022-02-03 18:39:40 +00:00
|
|
|
- name: Run against changes
|
|
|
|
uses: pre-commit/action@v2.0.3
|
|
|
|
with:
|
|
|
|
extra_args: --files ${{ inputs.modifiedFiles }}
|