pre-commit.yaml
This commit is contained in:
parent
cac6f625e8
commit
7858d16c0d
1 changed files with 9 additions and 20 deletions
29
.github/workflows/pre-commit.yaml
vendored
29
.github/workflows/pre-commit.yaml
vendored
|
|
@ -1,27 +1,16 @@
|
||||||
name: pre-commit
|
name: pre-commit
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: [main, stable]
|
branches: [main, stable]
|
||||||
pull_request:
|
|
||||||
types: [opened, synchronize, reopened]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-pre-commit:
|
main:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
uses: actions/checkout@v4
|
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
||||||
|
with:
|
||||||
- name: Set up Python
|
python-version: 3.x
|
||||||
uses: actions/setup-python@v5
|
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
|
||||||
with:
|
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
|
||||||
python-version: 3.x
|
if: ${{ !cancelled() }}
|
||||||
|
|
||||||
- name: Run pre-commit hooks
|
|
||||||
uses: pre-commit/action@v3.0.1
|
|
||||||
|
|
||||||
- name: Apply lite-action (auto-fix PR if needed)
|
|
||||||
uses: pre-commit-ci/lite-action@v1.1.0
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue