-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 857 Bytes
/
pre-commit.yml
File metadata and controls
42 lines (33 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Checks
on:
push:
branches:
- "**"
tags-ignore:
- "**"
jobs:
pre-commit:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Prep repository
run: ./scripts/init.sh
- name: Run pre-commit checks
run: ./.hooks/pre-commit
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add -A
git commit -m "chore: apply pre-commit fixes" || echo "No changes to commit"
- name: Show git status
run: git status
- name: Push changes
run: git push