Put manual hooks in separate workflow file

This commit is contained in:
John Bampton
2026-03-11 10:20:46 +10:00
parent cfc83bb6ac
commit 626b2fa469
2 changed files with 20 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
# https://github.com/j178/prek
name: Manual hooks
on: [pull_request]
permissions:
contents: read
jobs:
pre-commit:
name: Run pre-commit
runs-on: ubuntu-latest
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v6
- uses: j178/prek-action@v1
with:
install-only: true
- name: Run manual pre-commit hooks
run: prek run --color=always --all-files --hook-stage manual
-2
View File
@@ -16,5 +16,3 @@ jobs:
- uses: j178/prek-action@v1
with:
extra-args: --all-files
- name: Run manual pre-commit hooks
run: prek run --color=always --all-files --hook-stage manual