mirror of
https://github.com/chefyuan/algorithm-base.git
synced 2024-11-28 06:48:53 +00:00
修复错误
This commit is contained in:
parent
809e07979a
commit
c79cac3d9c
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -2,9 +2,9 @@ name: Format files
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -20,14 +20,13 @@ jobs:
|
|||||||
run: npm install --save-dev --save-exact prettier
|
run: npm install --save-dev --save-exact prettier
|
||||||
|
|
||||||
- name: Format files
|
- name: Format files
|
||||||
run: prettier --write .
|
run: node_modules/.bin/prettier --write README.md animation-simulation/
|
||||||
|
|
||||||
- name: Commit files
|
- name: Commit files
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git add .
|
git commit -am "代码重构 【Github Actions】"
|
||||||
git commit -m "代码重构 【Github Actions】"
|
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
|
Loading…
Reference in New Issue
Block a user