File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ name: Format files
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [ main ]
66 pull_request :
7- branches : [ master ]
7+ branches : [ main ]
88 workflow_dispatch :
99
1010jobs :
@@ -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
You can’t perform that action at this time.
0 commit comments