File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : auto-fix
2
2
3
3
on :
4
- pull_request :
4
+ push :
5
5
branches :
6
6
- master
7
- push :
7
+ pull_request :
8
8
branches :
9
9
- master
10
10
11
11
permissions :
12
12
contents : write
13
-
14
13
jobs :
15
14
auto-fix :
16
15
runs-on : ubuntu-latest
17
16
steps :
18
17
- uses : actions/checkout@v4
19
- with :
20
- ref : ${{ github.event.pull_request.head.ref }}
21
- clean : false
22
18
23
19
- uses : pnpm/action-setup@v4
24
20
25
21
- uses : actions/setup-node@v4
26
22
with :
27
23
node-version : 20
28
24
cache : pnpm
29
-
30
25
- run : pnpm install
31
-
32
26
# lint
33
27
- name : Auto-fix
34
28
run : pnpm run lint:fix
35
29
36
30
# commit
37
31
- name : Commit
38
- uses : stefanzweifel/git-auto -commit-action@v5
32
+ uses : EndBug/add-and -commit@v9
39
33
with :
40
- commit_message : ' ci(lint): auto-fix'
34
+ message : " ci(lint): auto-fix"
35
+ default_author : github_actions
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments