Skip to content

Commit d445858

Browse files
committed
Put manual hooks in separate workflow file
1 parent cfc83bb commit d445858

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://github.com/j178/prek
2+
name: Manual hooks
3+
4+
on: [pull_request]
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
pre-commit:
11+
name: Run pre-commit
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
15+
uses: actions/checkout@v6
16+
- uses: j178/prek-action@v1
17+
- name: Run manual pre-commit hooks
18+
run: prek run --color=always --all-files --hook-stage manual

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ jobs:
1616
- uses: j178/prek-action@v1
1717
with:
1818
extra-args: --all-files
19-
- name: Run manual pre-commit hooks
20-
run: prek run --color=always --all-files --hook-stage manual

0 commit comments

Comments
 (0)