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
|
2022-03-29 09:13:14 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-05-01 11:27:23 +00:00
|
|
|
|
2022-02-03 18:39:40 +00:00
|
|
|
- name: Run against changes
|
2022-06-06 11:57:22 +00:00
|
|
|
uses: pre-commit/action@v3.0.0
|
2022-02-03 18:39:40 +00:00
|
|
|
with:
|
|
|
|
extra_args: --files ${{ inputs.modifiedFiles }}
|