Skip to content

Commit c79cac3

Browse files
committed
修复错误
1 parent 809e079 commit c79cac3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Format files
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ main ]
88
workflow_dispatch:
99

1010
jobs:
@@ -20,14 +20,13 @@ jobs:
2020
run: npm install --save-dev --save-exact prettier
2121

2222
- name: Format files
23-
run: prettier --write .
23+
run: node_modules/.bin/prettier --write README.md animation-simulation/
2424

2525
- name: Commit files
2626
run: |
2727
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
2828
git config --local user.name "github-actions[bot]"
29-
git add .
30-
git commit -m "代码重构 【Github Actions】"
29+
git commit -am "代码重构 【Github Actions】"
3130
3231
- name: Push changes
3332
uses: ad-m/github-push-action@master

0 commit comments

Comments
 (0)