-
-
Notifications
You must be signed in to change notification settings - Fork 70
38 lines (30 loc) · 681 Bytes
/
auto-fix.yml
File metadata and controls
38 lines (30 loc) · 681 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
name: auto-fix
on:
push:
branches:
- 'master'
jobs:
auto-fix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install
# lint
- name: Auto-fix
run: npm run lint:fix
# format
- name: Format
run: npm run format
# commit
- name: Commit
uses: EndBug/add-and-commit@v9
with:
message: "ci(lint): auto-fix"
default_author: github_actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}